Improve this Doc

Tutorials & Examples

Agile Toolkit can be taught and learned by developers with virtually no web development experience. It offers the best academical and commercial learning value for your time.

for students

PHP Language is regarded as as one of the easiest language to learn. Unfortunately you can’t just learn PHP without learning a lot about HTML/CSS and web servers before.

Agile Toolkit lets you focus on your code. It teaches you to develop an efficient, stable and clean code. You will become a better code architect and be able to structure your application better without distracting you to a less-relevant technologies.

Only with Agile Toolkit you will be able to produce great-looking, visual Web application just in time for your course project deadline.

for professionals

If you are a full-time PHP developer, Agile Toolkit could be that “cool new technology” you can learn in your spare time. Just download, pick few examples and try putting a simple app together. Once done - share with others.

Agile Toolkit has all the necessary tools to produce a fully-featured web application. Even if something is missing, there are a lot of 3rd party code you could use.

for companies and enterprise

Enterprise does not run PHP. The business applications are written in Java, Scala, C# or sometimes Python. But none of those languages can offer a great Web Interface when it comes to web frameworks.

Agile Toolkit can consume your RESTful APIs of your middleware and put a great user interface on top of your corporate software stack. It also supports local caching, clustering and is super-easy to deploy and maintain.

All of the Agile Toolkit codebase is copyright by Agile Toolkit Limited - UK Based commercial company dedicated to growth and improvement of the framework.

for non-developers

If you are an administrator or a designer who only briefly need a framework to build a quick project - Agile Toolkit is ideal for you. From all the frameworks - Agile Toolkit gives you the most with minimum learning.

Agile Toolkit is great for building that quick and compact user interface for whatever project you have in mind.

for open-source projects

If you plan to begin a new personal project - why now make it open-source? You can use either MIT or AGPL license (or both) to make it available and free to anyone.

We love open-source software and will give you assistance with your project.

Crash-course in Agile Toolkit

To demonstrate the agility of the Agile Toolkit approach, here’s how you’d build a fully AJAXed CRUD application. Let’s start with the vanilla built-in CRUD component:

$crud = $page->add('CRUD');

That’s it – our page is now displaying an attractive and functional CRUD interface, and enforcing any rules set in our Employee Model.

In Agile Toolkit CRUD is just another component, with many powerful and flexible features built-in – for example:

$crud->addQuickSearch( [ 'name', 'department' ] );

Components are easy to extend and customize. CRUD is a composite View relying on Grid, Form and Button Views and we can interact with those subcomponents directly:

$crud = $this->add('CRUD');

if ($crud->grid) {
    if ($crud->grid->addButton('Populate Data')->isClicked()) {

Now we have a button which uses some AJAX to repopulate the CRUD form with a default data set. As you can see, there’s no need to get your hands dirty with the AJAX internals. The actual implementation of populateData() is part of the business logic and resides in Model_Book.

Let’s add a relational join:

$book = $this->add('Model_Book');
$author = $book->leftJoin('author');

$crud = $this->add('CRUD');

if ($crud->grid) {
    if ($crud->grid->addButton('Populate Data')->isClicked()) {

Our CRUD component is displaying data from two tables. But in Agile Toolkit it would be better style to encapsulate our join in a new Model:

class Model_BookWithAuthor extends Model_Book
    function init()
        $author = $this->leftJoin('author');

Models in Agile Toolkit are unusually powerful and flexible – this is merely a first glimpse of how they work.

Finally, you might want your CRUD with the ‘Populate Data’ button as a reusable component, so let’s move it into another new class:

class MyCRUD extends CRUD
    function render()
        if ($this->grid && $this->grid->model->hasMethod('populateData'))) {
            if ($this->grid->addButton('Populate Data')->isClicked()) {

So now we can use our two new components with just 2 lines of code:

$crud = $this->add('MyCRUD');

With other solutions similar CRUD functionality might require dozens, even hundreds of lines of code. So Agile Toolkit offers the potential to accelerate your CRUD development by a factor of ten or more, without resorting to inflexible libraries or code generation.

This example gives you a foretaste of some of the most powerful features of Agile Toolkit:

  • You can easily enhance existing components and even interact with the subcomponents they’re built from
  • Code in Models and Views can be quickly refactored to encapsulate new functionality without disrupting existing code and tests
  • You can develop and test custom components separately, then combine them into a UI of any complexity
  • Components benefit from the built-in CSS styling, providing you with an attractive interface with no additional work.

Can I Use Agile Toolkit With My Existing Code?

We recognise that many developers will be coming to Agile Toolkit with a significant investment in other MVC frameworks, or in content management frameworks such as WordPress, Drupal and Joomla.

If you want to add sophisticated data handling to your legacy code, Agile Toolkit is designed to play well with these other frameworks. For example you might use the Agile Toolkit UI features for just a couple of pages inside your CodeIgniter project, or you can use the unique features of the Agile Toolkit ORM to build the REST interface for your JavaScript frontend. Commonly, developers will use Agile Toolkit to modernise the backend/admin area of an existing project. You’ll find more details here.

Can I Use Agile Toolkit With My Existing Design?

While Agile Toolkit comes with a sophisticated CSS framework, you can always replace standard templates with your own.

In this section, you can walk through typical CakePHP applications to see how all of the pieces come together.

Alternatively, you can refer to the non-official CakePHP plugin repository CakePackages and the Bakery for existing applications and components.