SlideShare a Scribd company logo
1 of 13
PHP Frameworks & Introduction
to CodeIgniter
Jamshid Hashimi
Trainer, Cresco Solution
http://www.jamshidhashimi.com
jamshid@netlinks.af
@jamshidhashimi
ajamshidhashimi
Afghanistan Workforce
Development Program
Agenda
• What is a Framework?
• Libraries vs. Frameworks
• Advantage of using Framework
• Introduction to CodeIgniter
• Why CodeIgniter?
• Analyzing Different Frameworks
What is a Framework?
• Frameworks are of key importance for developing
large-scale object-oriented software systems.
They promise higher productivity and shorter
time-to-market through design and code reuse.
• Software frameworks include support programs,
compilers, code libraries, tool sets, and
application programming interfaces (APIs) that
bring together all the different components to
enable development of a project or solution.
Libraries vs. Frameworks
• Inversion of control – In a framework, unlike in libraries or
normal user applications, the overall program's flow of
control is not dictated by the caller, but by the framework.
• Default behavior – A framework has a default behavior.
• Extensibility – A framework can be extended by the user
usually by selective overriding or specialized by user code
to provide specific functionality.
• Non-modifiable framework code – The framework code, in
general, is not allowed to be modified, excepting
extensibility. Users can extend the framework, but not
modify its code.
Advantage of using Framework
• Efficiency
– Pre-built functions - Hours and hundreds of lines of code to write
– Easier, faster, and consequently efficient.
• Security
– Big security implementations.
– Community
• Cost
– Free
– Code Faster
• Support
– Documentation
– Community Forums
– Stackoverflow!
Introduction to CodeIgniter
• CodeIgniter is a toolkit for people who build
web applications using PHP. Its goal is to
enable you to develop projects much faster
than you could if you were writing code from
scratch, by providing a rich set of libraries for
commonly needed tasks, as well as a simple
interface and logical structure to access these
libraries. CodeIgniter lets you creatively focus
on your project by minimizing the amount of
code needed for a given task.
Why CodeIgniter?
• CodeIgniter is Free
• CodeIgniter is Light Weight
• CodeIgniter is Fast
– Really fast. We challenge you to find a framework that
has better performance than CodeIgniter.
• CodeIgniter Uses M-V-C
– CodeIgniter uses the Model-View-Controller approach
• CodeIgniter is Thoroughly Documented
• CodeIgniter has a Friendly Community of Users
Introduction to CodeIgniter
• CodeIgniter Generates Clean URLs
– The URLs generated by CodeIgniter are clean and search-engine
friendly. CodeIgniter uses a segment-based approach.
– example.com/news/article/345
• CodeIgniter Packs a Punch
– CodeIgniter comes with full-range of libraries that enable the
most commonly needed web development tasks, like accessing
a database, sending email, validating form data, maintaining
sessions, manipulating images, working with XML-RPC data and
much more.
• CodeIgniter is Extensible
– Your own libraries, helpers, or through class extensions or
system hooks.
Introduction to CodeIgniter
• CodeIgniter Does Not Require a Template
Engine
<ul>
<?php foreach ($addressbook as $name):?>
<li><?=$name?></li>
<?php endforeach; ?>
</ul>
<ul>
{foreach from=$addressbook item="name”}
<li>{$name}</li>
{/foreach}
</ul>
Analyzing Different Frameworks
• CakePHP
• Kohana
• Zend
• Yii
• Symphony
• Laravel
• CodeIgniter!
SETUP & CONFIGURATION
DEMO
QUESTIONS?

More Related Content

What's hot

Yii Framework Security
Yii Framework SecurityYii Framework Security
Yii Framework Security
Ilko Kacharov
 
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
CodeCamp Iasi 10 March 2012 -   Gabriel Enea - ASP.NET Web APICodeCamp Iasi 10 March 2012 -   Gabriel Enea - ASP.NET Web API
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
Codecamp Romania
 
RIA with Flex & PHP - Tulsa TechFest 2009
RIA with Flex & PHP  - Tulsa TechFest 2009RIA with Flex & PHP  - Tulsa TechFest 2009
RIA with Flex & PHP - Tulsa TechFest 2009
Jason Ragsdale
 

What's hot (20)

Why choose Yii framework?
Why choose Yii framework?Why choose Yii framework?
Why choose Yii framework?
 
Yii framework
Yii frameworkYii framework
Yii framework
 
Yii framework
Yii frameworkYii framework
Yii framework
 
Yii framework
Yii frameworkYii framework
Yii framework
 
codeigniter
codeignitercodeigniter
codeigniter
 
Applying EF Code First at Your Job
Applying EF Code First at Your JobApplying EF Code First at Your Job
Applying EF Code First at Your Job
 
Yii Framework
Yii FrameworkYii Framework
Yii Framework
 
Yii Framework Security
Yii Framework SecurityYii Framework Security
Yii Framework Security
 
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
CodeCamp Iasi 10 March 2012 -   Gabriel Enea - ASP.NET Web APICodeCamp Iasi 10 March 2012 -   Gabriel Enea - ASP.NET Web API
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
 
Yii php framework_honey
Yii php framework_honeyYii php framework_honey
Yii php framework_honey
 
Dependency Injection with Apex
Dependency Injection with ApexDependency Injection with Apex
Dependency Injection with Apex
 
RIA with Flex & PHP - Tulsa TechFest 2009
RIA with Flex & PHP  - Tulsa TechFest 2009RIA with Flex & PHP  - Tulsa TechFest 2009
RIA with Flex & PHP - Tulsa TechFest 2009
 
Multi Team Architecture
Multi Team ArchitectureMulti Team Architecture
Multi Team Architecture
 
[API the Docs Paris 2018] Architecting DX
[API the Docs Paris 2018] Architecting DX[API the Docs Paris 2018] Architecting DX
[API the Docs Paris 2018] Architecting DX
 
Yii Training session-1
Yii Training session-1Yii Training session-1
Yii Training session-1
 
APIs And SDKs Breaking Into And Succeeding In A Specialty Market
APIs And SDKs  Breaking Into And Succeeding In A Specialty MarketAPIs And SDKs  Breaking Into And Succeeding In A Specialty Market
APIs And SDKs Breaking Into And Succeeding In A Specialty Market
 
JavaCro'15 - GP GUI form generators - Daniel Strmečki
JavaCro'15 - GP GUI form generators - Daniel StrmečkiJavaCro'15 - GP GUI form generators - Daniel Strmečki
JavaCro'15 - GP GUI form generators - Daniel Strmečki
 
Mockoon - Create mock APIs in seconds
Mockoon - Create mock APIs in secondsMockoon - Create mock APIs in seconds
Mockoon - Create mock APIs in seconds
 
P H P Framework
P H P  FrameworkP H P  Framework
P H P Framework
 
Kasten securing access to your kubernetes applications
Kasten securing access to your kubernetes applicationsKasten securing access to your kubernetes applications
Kasten securing access to your kubernetes applications
 

Similar to PHP Frameworks & Introduction to CodeIgniter

Zend MVC pattern based Framework – Best for Enterprise web applications
Zend MVC pattern based Framework – Best for Enterprise web applicationsZend MVC pattern based Framework – Best for Enterprise web applications
Zend MVC pattern based Framework – Best for Enterprise web applications
Etisbew Technology Group
 

Similar to PHP Frameworks & Introduction to CodeIgniter (20)

Seminar.pptx
Seminar.pptxSeminar.pptx
Seminar.pptx
 
Get Codeigniter Developement Services From Us
 Get Codeigniter Developement Services From Us Get Codeigniter Developement Services From Us
Get Codeigniter Developement Services From Us
 
Why should you Choose CodeIgniter Framework for your Next project
Why should you Choose CodeIgniter Framework for your Next projectWhy should you Choose CodeIgniter Framework for your Next project
Why should you Choose CodeIgniter Framework for your Next project
 
Prominent Back-end frameworks to consider in 2022!
Prominent Back-end frameworks to consider in 2022!Prominent Back-end frameworks to consider in 2022!
Prominent Back-end frameworks to consider in 2022!
 
Benefits and Features of CodeIgniter.pdf
Benefits and Features of CodeIgniter.pdfBenefits and Features of CodeIgniter.pdf
Benefits and Features of CodeIgniter.pdf
 
Some Features make CodeIgniter Powerfull PHP framework.pdf
Some Features make CodeIgniter Powerfull PHP framework.pdfSome Features make CodeIgniter Powerfull PHP framework.pdf
Some Features make CodeIgniter Powerfull PHP framework.pdf
 
CodeIgniter Website Development a Comprehensive Guide 2024 .pdf
CodeIgniter Website Development a Comprehensive Guide 2024  .pdfCodeIgniter Website Development a Comprehensive Guide 2024  .pdf
CodeIgniter Website Development a Comprehensive Guide 2024 .pdf
 
Neev Open Source Contributions
Neev Open Source ContributionsNeev Open Source Contributions
Neev Open Source Contributions
 
9 Biggest Reasons to Invest in CodeIgniter Development Services.pdf
9 Biggest Reasons to Invest in CodeIgniter Development Services.pdf9 Biggest Reasons to Invest in CodeIgniter Development Services.pdf
9 Biggest Reasons to Invest in CodeIgniter Development Services.pdf
 
Why Codeigniter Development Services are preferred?
Why Codeigniter Development Services are preferred?Why Codeigniter Development Services are preferred?
Why Codeigniter Development Services are preferred?
 
Transforming to Microservices
Transforming to MicroservicesTransforming to Microservices
Transforming to Microservices
 
PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...
PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...
PHPFrameworkDay 2020 - Different software evolutions from Start till Release ...
 
"Different software evolutions from Start till Release in PHP product" Oleksa...
"Different software evolutions from Start till Release in PHP product" Oleksa..."Different software evolutions from Start till Release in PHP product" Oleksa...
"Different software evolutions from Start till Release in PHP product" Oleksa...
 
MongoDB World 2019: Building Flexible and Secure Customer Applications with M...
MongoDB World 2019: Building Flexible and Secure Customer Applications with M...MongoDB World 2019: Building Flexible and Secure Customer Applications with M...
MongoDB World 2019: Building Flexible and Secure Customer Applications with M...
 
Modular PHP Development using CodeIgniter Bonfire
Modular PHP Development using CodeIgniter BonfireModular PHP Development using CodeIgniter Bonfire
Modular PHP Development using CodeIgniter Bonfire
 
CODEIGNITER DEVELOPMENT EXPERTS IN UK
CODEIGNITER DEVELOPMENT EXPERTS IN UKCODEIGNITER DEVELOPMENT EXPERTS IN UK
CODEIGNITER DEVELOPMENT EXPERTS IN UK
 
Zend MVC pattern based Framework – Best for Enterprise web applications
Zend MVC pattern based Framework – Best for Enterprise web applicationsZend MVC pattern based Framework – Best for Enterprise web applications
Zend MVC pattern based Framework – Best for Enterprise web applications
 
The Case for Low-code Development
The Case for Low-code DevelopmentThe Case for Low-code Development
The Case for Low-code Development
 
Mendix Platform
Mendix PlatformMendix Platform
Mendix Platform
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integration
 

More from Jamshid Hashimi

CodeIgniter Helper Functions
CodeIgniter Helper FunctionsCodeIgniter Helper Functions
CodeIgniter Helper Functions
Jamshid Hashimi
 
Managing Applications in CodeIgniter
Managing Applications in CodeIgniterManaging Applications in CodeIgniter
Managing Applications in CodeIgniter
Jamshid Hashimi
 

More from Jamshid Hashimi (20)

Week 2: Getting Your Hands Dirty – Part 2
Week 2: Getting Your Hands Dirty – Part 2Week 2: Getting Your Hands Dirty – Part 2
Week 2: Getting Your Hands Dirty – Part 2
 
Week 1: Getting Your Hands Dirty - Part 1
Week 1: Getting Your Hands Dirty - Part 1Week 1: Getting Your Hands Dirty - Part 1
Week 1: Getting Your Hands Dirty - Part 1
 
Introduction to C# - Week 0
Introduction to C# - Week 0Introduction to C# - Week 0
Introduction to C# - Week 0
 
RIST - Research Institute for Science and Technology
RIST - Research Institute for Science and TechnologyRIST - Research Institute for Science and Technology
RIST - Research Institute for Science and Technology
 
How Coding Can Make Your Life Better
How Coding Can Make Your Life BetterHow Coding Can Make Your Life Better
How Coding Can Make Your Life Better
 
Mobile Vision
Mobile VisionMobile Vision
Mobile Vision
 
Tips for Writing Better Code
Tips for Writing Better CodeTips for Writing Better Code
Tips for Writing Better Code
 
Launch Your Local Blog & Social Media Integration
Launch Your Local Blog & Social Media IntegrationLaunch Your Local Blog & Social Media Integration
Launch Your Local Blog & Social Media Integration
 
Customizing Your Blog 2
Customizing Your Blog 2Customizing Your Blog 2
Customizing Your Blog 2
 
Customizing Your Blog 1
Customizing Your Blog 1Customizing Your Blog 1
Customizing Your Blog 1
 
Introduction to Blogging
Introduction to BloggingIntroduction to Blogging
Introduction to Blogging
 
Introduction to Wordpress
Introduction to WordpressIntroduction to Wordpress
Introduction to Wordpress
 
CodeIgniter Helper Functions
CodeIgniter Helper FunctionsCodeIgniter Helper Functions
CodeIgniter Helper Functions
 
CodeIgniter Class Reference
CodeIgniter Class ReferenceCodeIgniter Class Reference
CodeIgniter Class Reference
 
Managing Applications in CodeIgniter
Managing Applications in CodeIgniterManaging Applications in CodeIgniter
Managing Applications in CodeIgniter
 
CodeIgniter Practice
CodeIgniter PracticeCodeIgniter Practice
CodeIgniter Practice
 
CodeIgniter & MVC
CodeIgniter & MVCCodeIgniter & MVC
CodeIgniter & MVC
 
Exception & Database
Exception & DatabaseException & Database
Exception & Database
 
MySQL Record Operations
MySQL Record OperationsMySQL Record Operations
MySQL Record Operations
 
MySQL JOIN & UNION
MySQL JOIN & UNIONMySQL JOIN & UNION
MySQL JOIN & UNION
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 

PHP Frameworks & Introduction to CodeIgniter

  • 1. PHP Frameworks & Introduction to CodeIgniter Jamshid Hashimi Trainer, Cresco Solution http://www.jamshidhashimi.com jamshid@netlinks.af @jamshidhashimi ajamshidhashimi Afghanistan Workforce Development Program
  • 2. Agenda • What is a Framework? • Libraries vs. Frameworks • Advantage of using Framework • Introduction to CodeIgniter • Why CodeIgniter? • Analyzing Different Frameworks
  • 3. What is a Framework? • Frameworks are of key importance for developing large-scale object-oriented software systems. They promise higher productivity and shorter time-to-market through design and code reuse. • Software frameworks include support programs, compilers, code libraries, tool sets, and application programming interfaces (APIs) that bring together all the different components to enable development of a project or solution.
  • 4. Libraries vs. Frameworks • Inversion of control – In a framework, unlike in libraries or normal user applications, the overall program's flow of control is not dictated by the caller, but by the framework. • Default behavior – A framework has a default behavior. • Extensibility – A framework can be extended by the user usually by selective overriding or specialized by user code to provide specific functionality. • Non-modifiable framework code – The framework code, in general, is not allowed to be modified, excepting extensibility. Users can extend the framework, but not modify its code.
  • 5. Advantage of using Framework • Efficiency – Pre-built functions - Hours and hundreds of lines of code to write – Easier, faster, and consequently efficient. • Security – Big security implementations. – Community • Cost – Free – Code Faster • Support – Documentation – Community Forums – Stackoverflow!
  • 6. Introduction to CodeIgniter • CodeIgniter is a toolkit for people who build web applications using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task.
  • 7. Why CodeIgniter? • CodeIgniter is Free • CodeIgniter is Light Weight • CodeIgniter is Fast – Really fast. We challenge you to find a framework that has better performance than CodeIgniter. • CodeIgniter Uses M-V-C – CodeIgniter uses the Model-View-Controller approach • CodeIgniter is Thoroughly Documented • CodeIgniter has a Friendly Community of Users
  • 8. Introduction to CodeIgniter • CodeIgniter Generates Clean URLs – The URLs generated by CodeIgniter are clean and search-engine friendly. CodeIgniter uses a segment-based approach. – example.com/news/article/345 • CodeIgniter Packs a Punch – CodeIgniter comes with full-range of libraries that enable the most commonly needed web development tasks, like accessing a database, sending email, validating form data, maintaining sessions, manipulating images, working with XML-RPC data and much more. • CodeIgniter is Extensible – Your own libraries, helpers, or through class extensions or system hooks.
  • 9. Introduction to CodeIgniter • CodeIgniter Does Not Require a Template Engine <ul> <?php foreach ($addressbook as $name):?> <li><?=$name?></li> <?php endforeach; ?> </ul> <ul> {foreach from=$addressbook item="name”} <li>{$name}</li> {/foreach} </ul>
  • 10. Analyzing Different Frameworks • CakePHP • Kohana • Zend • Yii • Symphony • Laravel • CodeIgniter!
  • 12. DEMO

Editor's Notes

  1. Universal: Multipurpose