Home Page Icon
Home Page
Table of Contents for
Table of Contents
Close
Table of Contents
by Ross Tweedie
Learning FuelPHP for Effective PHP Development
Learning FuelPHP for Effective PHP Development
Table of Contents
Learning FuelPHP for Effective PHP Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. What is FuelPHP?
A brief history of FuelPHP
Features of FuelPHP
(H)MVC
Modular and extendable
Security
Oil – the power of the command line
ORM
Base controller classes and model classes
The authentication package
Template parsers
Documentation
What to look forward to in Version 2.0
Global scope and moving to dependency injection
Singleton
Multiton
Dependency injection container
Coding standards
Package management and modularization
Backwards compatibility
Speed boosts
Summary
2. Installation
Preparing the development environment
Apache
PHP
Database interactions
Source control – introducing Git
Further information about Git
Getting and installing FuelPHP with curl and Oil
Clone from GitHub
Continuing the installation
Setting up your project
Using submodules to easily update the FuelPHP core and packages
Committing your code
Composer – the package manager
Configuration
Running in the production environment
Performing migrations
Summary
3. The Architecture
Environments, constants, and configuration
Server and Apache configuration
The bootstrap PHP file
Configuration
Constants
Models, views, and controllers
Views and ViewModels
Models
Controllers
Template
Rest
Hybrid
Summary
4. Demo Application
Getting started
Creating a database table
Entries
Categories
Users
categories_entries
Migrations and Oil
Models
Controllers
Views
Generating an administration system using Oil
Summary
5. Packages
What is a package?
Recommended packages
OAuth
OAuth2
Mandrill
Sprockets
Using the Auth package for user authentication
SimpleAuth
ORMAuth
OPAuth
Composer
An introduction to building your own package
Setting up a repository
Working the package as a submodule
Structuring your package
Configuring your package
Using your package
Letting people know about your package
Summary
6. Advanced Topics
What modules are and how to use them
Namespaces
The module folder structure
Using the module from the main application
Tasks
Routing
Unit testing
So what is unit testing?
PHPUnit
Running unit tests
Creating unit tests
Grouping unit tests
Configuration and module testing
Profiling
Summary
7. Welcome to the Community
FuelPHP and GitHub
Getting help and support
FuelPHP on social media
Twitter
Facebook
Parting words
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Learning FuelPHP for Effective PHP Development
Table of Contents
Learning FuelPHP for Effective PHP Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. What is FuelPHP?
A brief history of FuelPHP
Features of FuelPHP
(H)MVC
Modular and extendable
Security
Oil – the power of the command line
ORM
Base controller classes and model classes
The authentication package
Template parsers
Documentation
What to look forward to in Version 2.0
Global scope and moving to dependency injection
Singleton
Multiton
Dependency injection container
Coding standards
Package management and modularization
Backwards compatibility
Speed boosts
Summary
2. Installation
Preparing the development environment
Apache
PHP
Database interactions
Source control – introducing Git
Further information about Git
Getting and installing FuelPHP with curl and Oil
Clone from GitHub
Continuing the installation
Setting up your project
Using submodules to easily update the FuelPHP core and packages
Committing your code
Composer – the package manager
Configuration
Running in the production environment
Performing migrations
Summary
3. The Architecture
Environments, constants, and configuration
Server and Apache configuration
The bootstrap PHP file
Configuration
Constants
Models, views, and controllers
Views and ViewModels
Models
Controllers
Template
Rest
Hybrid
Summary
4. Demo Application
Getting started
Creating a database table
Entries
Categories
Users
categories_entries
Migrations and Oil
Models
Controllers
Views
Generating an administration system using Oil
Summary
5. Packages
What is a package?
Recommended packages
OAuth
OAuth2
Mandrill
Sprockets
Using the Auth package for user authentication
SimpleAuth
ORMAuth
OPAuth
Composer
An introduction to building your own package
Setting up a repository
Working the package as a submodule
Structuring your package
Configuring your package
Using your package
Letting people know about your package
Summary
6. Advanced Topics
What modules are and how to use them
Namespaces
The module folder structure
Using the module from the main application
Tasks
Routing
Unit testing
So what is unit testing?
PHPUnit
Running unit tests
Creating unit tests
Grouping unit tests
Configuration and module testing
Profiling
Summary
7. Welcome to the Community
FuelPHP and GitHub
Getting help and support
FuelPHP on social media
Twitter
Facebook
Parting words
Index
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset