Rapid Application Development
Minimum price
Suggested price

Rapid Application Development

with CakePHP 2.0

About the Book

This book runs through the process of building a simple pastebin website with the CakePHP web application framework. It covers all the topics in your typical CakePHP tutorial, but takes extra care to point out useful information and techniques for speeding up your own application development.

What you will learn with this eBook
  • Developing within a Vagrant Virtual Machine

    Ever tire of setting up a local development server just to screw up the rest of your TCP/IP settings? Fret no more as we work within a virtualized server.

  • Managing Dependencies via Composer

    Installing CakePHP, Plugins, and external libraries need not be difficult. Learn how to use the excellent Composer tool to manage libraries your app uses.

  • Custom CakePHP Routes

    Customizing your URL structure is important. We go over creating custom route classes, enabling you to really harness the power of the CakePHP Router.

  • Using the Powerful Crud Plugin

    Tired of writing the same old CRUD code? Ever wanted to expand the way bake generated data internally? Use the Crud plugin to boost your baking skills.

  • User Authentication and Authorization

    Stop fighting the CakePHP AuthComponent. Learn a quick and easy way to add application authentication and protect your app using the simplest authorization code.

  • Deploying your application to Heroku

    Rather than attempt to figure out yet another production server, we deploy your application to the cloud using the excellent Heroku platform. For free. Boom.

  • Scaffold templates using Bake

    Save time with the bake CakePHP shell and generate your template files with minimal fuss.

  • The CakePHP Event system

    Confused on how CakePHP uses events internally? Want to start using them in your everyday code? This book introduces multiple ways to use events. All in simple to understand examples.

About the Author

Jose Diaz-Gonzalez
Jose Diaz-Gonzalez

I wrote this book after being frustrated with the options for new CakePHP developers. This book is therefore a distillation of my own development practices, mixed with those of other CakePHP Core Developers and the community at large. I focused on getting past the tough issues quickly while utilizing knowledge of the internals to teach you how to create a bakers delight.

Whether you are a CakePHP beginner, or have been using CakePHP for years, this book is designed to ensure you learn exactly what you need to do to craft a high performance application that is also a treat to work with. I hope you enjoy it.

Jose Diaz-Gonzalez, CakePHP Core Developer

Table of Contents

  • Acknowledgements
  • Errata and Feedback
  • Preface
    • whoami
    • Is this book for me?
    • I’m ready to learn! What now?
  • The Setup
    • Installing the virtual development environment
    • Required accounts
  • Prepping our Application
    • Dependency Management
    • Keeping track of changes via GIT
    • Local install of our application
    • Summary
  • Adding automated testing
    • Automated testing
    • Setting up a Test Case
    • Writing your first Test Case
    • Automated testing
    • Summary
  • Deploying to Heroku
    • Heroku setup
    • Adding necessary heroku dependencies
    • Configuring our PHP buildpack
    • View it live
    • Summary
  • Implementing a Paste
    • Schema and Migrations
    • Crud
    • Pushing to production
    • Summary
  • Custom Application Actions
    • Routing Requests
    • Controllers
    • Sending custom data to the view
    • Using custom templates
    • CakePHP templates
    • Customizing the look of your application
    • Summary
  • Public and Private Pastes
    • Handling private pastes
    • Privacy security
    • Summary
  • Debugging Data via DebugKit
    • DebugKit features
    • Creating a DebugKit panel
    • Adding new timing calls using DebugTimer
    • Summary
  • User Authentication
    • User Authentication
    • Authorizing Paste Access
    • Deploying the code
    • Summary
  • User profiles
    • Adding Profile pages
    • Managing user accounts
    • Summary
  • Adding Roles to Users
    • Adding the relevant database column
    • Using constants to refer to roles
    • Overriding roles via a shell
    • Deploying the code
    • Summary
  • Developing a Simple Access Control System
    • Annotations in PHP
    • Speccing out our plugin
    • Test-Driven Plugin Development
    • Implementing our plugin
    • Deploying the code
    • Summary
  • Conclusion

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub