SlideShare a Scribd company logo
Cake PHP – OOPS approach for PHP


                       www.otssolutions.com
What is CakePHP ?
• CakePHP is written in PHP and is modeled
  after the concepts of Ruby on Rails (ROR)
• CakePHP is a rapid development framework
  for PHP that provides an extensible
  architecture for
  developing, maintaining, and deploying
  applications.
• CakePHP makes use of commonly known
  design patterns like
  ActiveRecord, Association Data
Why use CakePHP ?
• Model, View, Controller Architecture
• Helps developers to reduce code
  repentance in creation of websites or web
  applications.
• Application Scaffolding.
• Built in view helpers for
  AJAX, JavaScript, HTML Forms.
• Access Control Lists
Why use CakePHP ?
• Data Sanitization
• Security, Session, and Request Handling
  Components
• Flexible View Caching
• Full support for PHP OOP’s approach
           And
• It is developed under the MIT license so it
  is free for everyone
Where to use CakePHP ?
• Highly scalable projects
• Projects with Heavy Database Interactions
  and Object Relational Mapping
• Projects where caching is needed
• Projects which needs to be implemented
  with MVC approach
• Where code re-usability is necessity
Where not to use CakePHP ?
•   Basic Blog
•   Basic CMS
•   Basic E-Commere
•   Basic Forums / Bulletin Boards
Who is using CakePHP ?
What is MVC approach?
What is MVC approach?
• Model/View/Controller (MVC) is a
  software architecture used for building
  applications.
• MVC separates the business logic and
  application data from the presentation
  data to the user.
• Applications built using MVC approach are
  re-usable and expressive.
What is OOPs?
• Object-oriented programming is a method
  of implementation in which programs are
  organized as cooperative collections of
  objects, each of which represents an
  instance of some class, and whose
  classes are all members of one or more
  hierarchy of classes united via inheritance
  relationships.
OOPs advantages over conventional approaches
 • OOP provides a clear modular structure
   for programs which makes it good for
   defining abstract data types where
   implementation details are hidden and the
   unit has a clearly defined interface..
 • OOP makes it easy to maintain and modify
   existing code as new objects can be
   created with small differences to existing
   ones.
OOPs advantages over conventional approaches
 • OOP provides a good framework for code
   libraries where supplied software
   components can be easily adapted and
   modified by the programmer. This is
   particularly useful for developing graphical
   user interfaces.
Characteristics of OOPs
 • Class definitions
 • Objects
 • Abstraction
 • Encapsulation
 • Inheritance
 • Generic classes
 • Polymorphism
    • Operator and Function overloading.
 • Message Passing
How OOPs work
 • Classes describe objects
 • Objects inherit from superclasses
Class Hierarchies
Advantages of OOPs
 •   Simplicity
 •   Modularity
 •   Modifiability
 •   Extensibility
 •   Maintainability
 •   Re-usability
OOPs in PHP
 • PHP 5 has a full object model as
   compared to PHP4.
 • PHP treats objects in the same way as
   references or handles, meaning that each
   variable contains an object reference
   rather than a copy of the entire object.
 • PHP supports Visibility, abstract and final
   classes and methods , additional magic
   methods, interfaces, cloning and
   typehinting
OOPs Features in PHP
 Autoloading : Autoloading is a mechanism
 where you can specify where the code
 should look for a class name that follows a
 particular pattern. Once you have set this
 up, usually very early in the script when
 everything gets configured, then you can
 simply instantiate classes without having to
 expressly include their declaration files.
OOPs Features in PHP
 Interfaces : PHP does not have multiple
 inheritance, so each object can only have
 one parent, and the top-level parent of all
 objects is of type StdClass. However PHP
 does support interfaces, which allows
 polymorphism (one class which can look like
 another) in PHP.
OOPs Features in PHP
 Type Hinting : We use the instanceOf
 comparison operator to check that an object
 with the correct capabilities had been
 received, but we can make this simpler by
 using type hinting in our functions and object
 methods. .
OOPs Features in PHP
 Fluent Interfaces : This is a neat trick that
 can often be seen in particular in framework
 code, so it is worth a mention here. A “fluent
 interface” is one where you can chain the
 methods together, useful especially where
 you would be calling a sequence of methods
 on the same object.
Thank You


            http://www.otssolutions.com/
USA                                                                             India
                                      United kingdom
4433 Merlin                                                                     Gurgaon ( Haryana )
                                      88 Wood Street                            795, Udyog Vihar, Phase-V
 Way , Soquel                          10th Floor London                        Gurgaon(Haryana) India
CA 95073                              EC2V 7RS                                  Ph: +91 124 4101350
United States                                                                   +91 124 4748100
                                      Ph: +44 208 099 1660
Ph: +1 408 540 0001
                                                                                Write to us at: sales@otssolutions.com
Write to us at: sales@otssolutions.com Write to us at: sales@otssolutions.com
                                                                                    http://www.otssolutions.com/

More Related Content

Similar to Cake php oops approach for php

Functional Programming in PHP
Functional Programming in PHPFunctional Programming in PHP
Functional Programming in PHP
Aurimas Niekis
 
OOPs-Interview-Questions.pdf
OOPs-Interview-Questions.pdfOOPs-Interview-Questions.pdf
OOPs-Interview-Questions.pdf
Samir Paul
 
Oop's
Oop'sOop's
.NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits .NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits
Deepika Chaudhary
 
PHPID-OL#29 The Change Maker Framework
PHPID-OL#29 The Change Maker FrameworkPHPID-OL#29 The Change Maker Framework
PHPID-OL#29 The Change Maker Framework
Steeven Salim
 
Presentation 1 Web--dev
Presentation 1 Web--devPresentation 1 Web--dev
Presentation 1 Web--dev
altsav
 
Top 5 advanced php framework in 2018
Top 5 advanced php framework in 2018Top 5 advanced php framework in 2018
Php tutorial(w3schools)
Php tutorial(w3schools)Php tutorial(w3schools)
Php tutorial(w3schools)
Arjun Shanka
 
Php tutorialw3schools
Php tutorialw3schoolsPhp tutorialw3schools
Php tutorialw3schools
rasool noorpour
 
Managing Annotations (OR2016)
Managing Annotations (OR2016)Managing Annotations (OR2016)
Managing Annotations (OR2016)
Robert Sanderson
 
Ps02 cint24 mvc in php
Ps02 cint24 mvc in phpPs02 cint24 mvc in php
Ps02 cint24 mvc in php
Conestoga Collage
 
Laravel overview
Laravel overviewLaravel overview
Laravel overview
Obinna Akunne
 
Top 7 php frameworks for startups 2019
Top 7 php frameworks for startups   2019Top 7 php frameworks for startups   2019
Top 7 php frameworks for startups 2019
ValueCoders
 
Oops in PHP By Nyros Developer
Oops in PHP By Nyros DeveloperOops in PHP By Nyros Developer
Oops in PHP By Nyros Developer
Nyros Technologies
 
Object-Oriented Programming in Real world Applications
Object-Oriented Programming in Real world ApplicationsObject-Oriented Programming in Real world Applications
Object-Oriented Programming in Real world Applications
MehmoodHasnain
 
Know about cake php framework with vertexplus
Know about  cake php framework with vertexplusKnow about  cake php framework with vertexplus
Know about cake php framework with vertexplus
VertexPlus Softwares Pvt. Ltd.
 
Who Should Consider Using Laravel for Web Development?
Who Should Consider Using Laravel for Web Development?Who Should Consider Using Laravel for Web Development?
Who Should Consider Using Laravel for Web Development?
Acquaint Softtech Private Limited
 
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4jRobotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
Kevin Watters
 
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
Lucidworks
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
Sush Singhaniya
 

Similar to Cake php oops approach for php (20)

Functional Programming in PHP
Functional Programming in PHPFunctional Programming in PHP
Functional Programming in PHP
 
OOPs-Interview-Questions.pdf
OOPs-Interview-Questions.pdfOOPs-Interview-Questions.pdf
OOPs-Interview-Questions.pdf
 
Oop's
Oop'sOop's
Oop's
 
.NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits .NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits
 
PHPID-OL#29 The Change Maker Framework
PHPID-OL#29 The Change Maker FrameworkPHPID-OL#29 The Change Maker Framework
PHPID-OL#29 The Change Maker Framework
 
Presentation 1 Web--dev
Presentation 1 Web--devPresentation 1 Web--dev
Presentation 1 Web--dev
 
Top 5 advanced php framework in 2018
Top 5 advanced php framework in 2018Top 5 advanced php framework in 2018
Top 5 advanced php framework in 2018
 
Php tutorial(w3schools)
Php tutorial(w3schools)Php tutorial(w3schools)
Php tutorial(w3schools)
 
Php tutorialw3schools
Php tutorialw3schoolsPhp tutorialw3schools
Php tutorialw3schools
 
Managing Annotations (OR2016)
Managing Annotations (OR2016)Managing Annotations (OR2016)
Managing Annotations (OR2016)
 
Ps02 cint24 mvc in php
Ps02 cint24 mvc in phpPs02 cint24 mvc in php
Ps02 cint24 mvc in php
 
Laravel overview
Laravel overviewLaravel overview
Laravel overview
 
Top 7 php frameworks for startups 2019
Top 7 php frameworks for startups   2019Top 7 php frameworks for startups   2019
Top 7 php frameworks for startups 2019
 
Oops in PHP By Nyros Developer
Oops in PHP By Nyros DeveloperOops in PHP By Nyros Developer
Oops in PHP By Nyros Developer
 
Object-Oriented Programming in Real world Applications
Object-Oriented Programming in Real world ApplicationsObject-Oriented Programming in Real world Applications
Object-Oriented Programming in Real world Applications
 
Know about cake php framework with vertexplus
Know about  cake php framework with vertexplusKnow about  cake php framework with vertexplus
Know about cake php framework with vertexplus
 
Who Should Consider Using Laravel for Web Development?
Who Should Consider Using Laravel for Web Development?Who Should Consider Using Laravel for Web Development?
Who Should Consider Using Laravel for Web Development?
 
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4jRobotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
 
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 

More from Deepika Chaudhary

Windows Presentation Foundation
Windows Presentation Foundation  Windows Presentation Foundation
Windows Presentation Foundation
Deepika Chaudhary
 
Android™ application development
Android™ application developmentAndroid™ application development
Android™ application development
Deepika Chaudhary
 
WINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATIONWINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATION
Deepika Chaudhary
 
Creativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-developmentCreativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-development
Deepika Chaudhary
 
Creativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-developmentCreativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-development
Deepika Chaudhary
 
Java application-development-in-india
Java application-development-in-indiaJava application-development-in-india
Java application-development-in-india
Deepika Chaudhary
 
Net application-development–business-growth-with-net
Net application-development–business-growth-with-netNet application-development–business-growth-with-net
Net application-development–business-growth-with-net
Deepika Chaudhary
 
Hire Dedicated Java Developers
Hire Dedicated Java DevelopersHire Dedicated Java Developers
Hire Dedicated Java Developers
Deepika Chaudhary
 
Java application-development
Java application-developmentJava application-development
Java application-development
Deepika Chaudhary
 
Software development companies in india
Software development companies in indiaSoftware development companies in india
Software development companies in india
Deepika Chaudhary
 
Java the reason behind its never ending demand
Java the reason behind its never ending demandJava the reason behind its never ending demand
Java the reason behind its never ending demand
Deepika Chaudhary
 
Know all about android development
Know all about android developmentKnow all about android development
Know all about android development
Deepika Chaudhary
 
OTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentationOTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentation
Deepika Chaudhary
 
OTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentationOTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentation
Deepika Chaudhary
 

More from Deepika Chaudhary (14)

Windows Presentation Foundation
Windows Presentation Foundation  Windows Presentation Foundation
Windows Presentation Foundation
 
Android™ application development
Android™ application developmentAndroid™ application development
Android™ application development
 
WINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATIONWINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATION
 
Creativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-developmentCreativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-development
 
Creativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-developmentCreativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-development
 
Java application-development-in-india
Java application-development-in-indiaJava application-development-in-india
Java application-development-in-india
 
Net application-development–business-growth-with-net
Net application-development–business-growth-with-netNet application-development–business-growth-with-net
Net application-development–business-growth-with-net
 
Hire Dedicated Java Developers
Hire Dedicated Java DevelopersHire Dedicated Java Developers
Hire Dedicated Java Developers
 
Java application-development
Java application-developmentJava application-development
Java application-development
 
Software development companies in india
Software development companies in indiaSoftware development companies in india
Software development companies in india
 
Java the reason behind its never ending demand
Java the reason behind its never ending demandJava the reason behind its never ending demand
Java the reason behind its never ending demand
 
Know all about android development
Know all about android developmentKnow all about android development
Know all about android development
 
OTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentationOTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentation
 
OTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentationOTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentation
 

Recently uploaded

Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
David Brossard
 
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdfAI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
Techgropse Pvt.Ltd.
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 

Recently uploaded (20)

Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdfAI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 

Cake php oops approach for php

  • 1. Cake PHP – OOPS approach for PHP www.otssolutions.com
  • 2. What is CakePHP ? • CakePHP is written in PHP and is modeled after the concepts of Ruby on Rails (ROR) • CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. • CakePHP makes use of commonly known design patterns like ActiveRecord, Association Data
  • 3. Why use CakePHP ? • Model, View, Controller Architecture • Helps developers to reduce code repentance in creation of websites or web applications. • Application Scaffolding. • Built in view helpers for AJAX, JavaScript, HTML Forms. • Access Control Lists
  • 4. Why use CakePHP ? • Data Sanitization • Security, Session, and Request Handling Components • Flexible View Caching • Full support for PHP OOP’s approach And • It is developed under the MIT license so it is free for everyone
  • 5. Where to use CakePHP ? • Highly scalable projects • Projects with Heavy Database Interactions and Object Relational Mapping • Projects where caching is needed • Projects which needs to be implemented with MVC approach • Where code re-usability is necessity
  • 6. Where not to use CakePHP ? • Basic Blog • Basic CMS • Basic E-Commere • Basic Forums / Bulletin Boards
  • 7. Who is using CakePHP ?
  • 8. What is MVC approach?
  • 9. What is MVC approach? • Model/View/Controller (MVC) is a software architecture used for building applications. • MVC separates the business logic and application data from the presentation data to the user. • Applications built using MVC approach are re-usable and expressive.
  • 10. What is OOPs? • Object-oriented programming is a method of implementation in which programs are organized as cooperative collections of objects, each of which represents an instance of some class, and whose classes are all members of one or more hierarchy of classes united via inheritance relationships.
  • 11. OOPs advantages over conventional approaches • OOP provides a clear modular structure for programs which makes it good for defining abstract data types where implementation details are hidden and the unit has a clearly defined interface.. • OOP makes it easy to maintain and modify existing code as new objects can be created with small differences to existing ones.
  • 12. OOPs advantages over conventional approaches • OOP provides a good framework for code libraries where supplied software components can be easily adapted and modified by the programmer. This is particularly useful for developing graphical user interfaces.
  • 13. Characteristics of OOPs • Class definitions • Objects • Abstraction • Encapsulation • Inheritance • Generic classes • Polymorphism • Operator and Function overloading. • Message Passing
  • 14. How OOPs work • Classes describe objects • Objects inherit from superclasses
  • 16. Advantages of OOPs • Simplicity • Modularity • Modifiability • Extensibility • Maintainability • Re-usability
  • 17. OOPs in PHP • PHP 5 has a full object model as compared to PHP4. • PHP treats objects in the same way as references or handles, meaning that each variable contains an object reference rather than a copy of the entire object. • PHP supports Visibility, abstract and final classes and methods , additional magic methods, interfaces, cloning and typehinting
  • 18. OOPs Features in PHP Autoloading : Autoloading is a mechanism where you can specify where the code should look for a class name that follows a particular pattern. Once you have set this up, usually very early in the script when everything gets configured, then you can simply instantiate classes without having to expressly include their declaration files.
  • 19. OOPs Features in PHP Interfaces : PHP does not have multiple inheritance, so each object can only have one parent, and the top-level parent of all objects is of type StdClass. However PHP does support interfaces, which allows polymorphism (one class which can look like another) in PHP.
  • 20. OOPs Features in PHP Type Hinting : We use the instanceOf comparison operator to check that an object with the correct capabilities had been received, but we can make this simpler by using type hinting in our functions and object methods. .
  • 21. OOPs Features in PHP Fluent Interfaces : This is a neat trick that can often be seen in particular in framework code, so it is worth a mention here. A “fluent interface” is one where you can chain the methods together, useful especially where you would be calling a sequence of methods on the same object.
  • 22. Thank You http://www.otssolutions.com/
  • 23. USA India United kingdom 4433 Merlin Gurgaon ( Haryana ) 88 Wood Street 795, Udyog Vihar, Phase-V Way , Soquel 10th Floor London Gurgaon(Haryana) India CA 95073 EC2V 7RS Ph: +91 124 4101350 United States +91 124 4748100 Ph: +44 208 099 1660 Ph: +1 408 540 0001 Write to us at: sales@otssolutions.com Write to us at: sales@otssolutions.com Write to us at: sales@otssolutions.com http://www.otssolutions.com/