Learning FuelPHP for Effective PHP Development 1st Edition Ross Tweedie pdf download
Learning FuelPHP for Effective PHP Development 1st Edition Ross Tweedie pdf download
https://ebookmeta.com/product/learning-fuelphp-for-effective-php-
development-1st-edition-ross-tweedie/
https://ebookmeta.com/product/php-8-basics-for-programming-and-
web-development-1st-edition-gunnard-engebreth/
https://ebookmeta.com/product/learning-drupal-6-module-
development-a-practical-tutorial-for-creating-your-first-
drupal-6-modules-with-php-1st-edition-butcher-matt/
https://ebookmeta.com/product/learning-php-mysql-javascript-7th-
edition-robin-nixon/
https://ebookmeta.com/product/harmony-of-colour-09-beauty-and-
the-beast-1st-edition-nuclear-media/
Constitutional Development in the Commonwealth
Caribbean 1st Edition Hamid A. Ghany
https://ebookmeta.com/product/constitutional-development-in-the-
commonwealth-caribbean-1st-edition-hamid-a-ghany/
https://ebookmeta.com/product/russian-how-to-get-really-good-at-
russian-learn-russian-to-fluency-and-beyond-1st-edition-polyglot-
language-learning/
https://ebookmeta.com/product/finite-element-analysis-and-design-
of-steel-and-steel-concrete-composite-bridges-ehab-ellobody/
https://ebookmeta.com/product/american-farmhouse-style-
october-2022-5th-edition-american-farmhouse-style/
https://ebookmeta.com/product/research-methods-and-evidence-
based-practice-4th-edition-pranee-liamputtong/
Biomedical Imaging Instrumentation: Applications in
Tissue, Cellular and Molecular Diagnostics (Volume 2)
(Primers in Biomedical Imaging Devices and Systems,
Volume 2) 1st Edition
https://ebookmeta.com/product/biomedical-imaging-instrumentation-
applications-in-tissue-cellular-and-molecular-diagnostics-
volume-2-primers-in-biomedical-imaging-devices-and-systems-
volume-2-1st-edition/
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
Learning FuelPHP for
Effective PHP Development
Learning FuelPHP for
Effective PHP Development
Copyright © 2013 Packt Publishing
Every effort has been made in the preparation of this book to ensure
the accuracy of the information presented. However, the information
contained in this book is sold without warranty, either express or
implied. Neither the author, nor Packt Publishing, and its dealers and
distributors will be held liable for any damages caused or alleged to
be caused directly or indirectly by this book.
Livery Place
35 Livery Street
ISBN 978-1-78216-036-6
www.packtpub.com
Ross Tweedie
Reviewers
Adam Booth
Rémi Delhaye
Derrick Egersdorfer
Acquisition Editor
Kartikey Pandey
Kevin Colaco
Commissioning Editor
Shaon Basu
Technical Editor
Akashdeep Kundu
Copy Editors
Alisha Aranha
Roshni Banerjee
Tanvi Gaitonde
Sayanee Mukherjee
Project Coordinator
Amey Sawant
Proofreader
Linda Morris
Indexer
Hemangini Bari
Tejal Soni
Production Coordinator
Kirtee Shingan
Cover Work
Kirtee Shingan
About the Author
Ross Tweedie is a developer who specializes in creating
applications using PHP and FuelPHP. He is passionate about using
FuelPHP to test new ideas and concepts effectively. He is using open
source technologies to enable people to collaborate with one
another. His background is both in design and development, and he
has experience in a wide range of industries.
Adam has been using PHP for many years and FuelPHP has been his
framework of choice for all new PHP projects he starts. He is excited
about the future of web technologies and believes this is where the
future of development will really thrive.
I would like to thank my wife, Mallory, for all of the support she
has given me over the years. She is creative, resourceful, and
one of the best debuggers I know. I'd also like to thank my
parents, Don and Susan, who have always been inspirational and
encouraging. As small business owners, they have shown me
how hard work and perseverance pays off.
GitHub: http://github.io/RemiDelhaye
Website: http://remidelhaye.fr
Did you know that Packt offers eBook versions of every book
published, with PDF and ePub files available? You can upgrade to the
eBook version at www.PacktPub.com and as a print book customer,
you are entitled to a discount on the eBook copy. Get in touch with
us at <service@packtpub.com> for more details.
http://PacktLib.PacktPub.com
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.