Leanpub Header

Skip to main content

Mako Framework 4.4

Up-to-date Official Documentation (Offline edition)

Free With Membership

With Membership

Free!

$7.99

You pay

$7.99

Author earns

$6.39
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
About

About

About the Book

Share this book

Categories

License

Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License

Author

About the Author

M N Islam Shihan

Founder & CTO at Sphinx Corporation

An accomplished Software Engineer & Leader specializing in Object-Oriented Design and Analysis with extensive experience in the full life cycle of the software design process including requirement analysis, prototyping, proof of concept, design of application, platform and user interface architecture design, implementation, testing and maintenance. Additional expertise includes project management and strong communication skills on both technical and business domains.

Social Profiles

Contents

Table of Contents

Getting started

Installation

  1. Requirements
  2. Setup
  3. Server configurations

Configuration

  1. Config Files
  2. Cascading configuration
  3. Environment aware configuration

Dependency injection

  1. Basics
  2. Services
  3. Container aware

Error handling

  1. Custom error handling
  2. Disabling logging of specific exception types

Constants

  1. Defaults

Coding standards

  1. PHP tags
  2. Files
  3. Namespaces
  4. Classes
  5. Methods
  6. Variables
  7. Constants
  8. Arrays
  9. Braces
  10. Indentation
  11. Comments

Upgrading

  1. Application
  2. Packages
  3. Routing and controllers

Routing

  1. Basics
  2. Route parameters
  3. Route filters
  4. Route groups
  5. Reverse routing
  6. Faking request methods

Controllers

  1. Basics
  2. Controller filters
  3. Dependency injection

Request

  1. Accessing data
  2. Reading cookies
  3. Request information

Response

  1. Basics
  2. Setting cookies
  3. Setting headers
  4. Response filters
  5. Caching and compression
  6. Special responses
  7. Command line

Command line

  1. Usage

Custom commands

  1. Basics
  2. Input
  3. Output
  4. Dependency injection
  5. Databases sql

Databases

  1. Connections
  2. Query builder
  3. Accessing the underlying PDO instance

Query builder

  1. Getting a query builder instance
  2. Fetching data
  3. Inserting data
  4. Updating data
  5. Deleting data
  6. Aggregates
  7. WHERE clauses
  8. WHERE BETWEEN clauses
  9. WHERE IN clauses
  10. WHERE IS NULL clauses
  11. WHERE EXISTS clauses
  12. JOIN clauses
  13. GROUP BY clauses
  14. HAVING clauses
  15. ORDER BY clauses
  16. LIMIT and OFFSET clauses

ORM

  1. Naming conventions
  2. Key types
  3. Basic usage
  4. Relations
  5. Automatic typecasting
  6. Mutators and accessors
  7. Scopes
  8. Mass assignment
  9. Read-only records
  10. Cloning records
  11. Array and JSON representations
  12. Traits

Migrations

  1. Usage
  2. Dependency injection
  3. Databases nosql

Redis

  1. Usage
  2. Security

Authentication

  1. Basic usage
  2. Providers
  3. Users & groups
  4. Database schema

Password hashing

  1. Usage

Encryption and signing

  1. Encryption
  2. Signing
  3. Packages

Packages

  1. Basics
  2. Configuration, i18n and views
  3. Commands
  4. Package installation
  5. Publishing packages
  6. Learn more

Array helper

  1. Usage

Caching

  1. Usage

Date and time

  1. Usage

Events

  1. Event listener
  2. Observable trait

File system

  1. Usage

HTML helper

  1. Usage

Humanizer

  1. Usage

Image manipulation

  1. Usage

Internationalization

  1. Language files
  2. Usage
  3. Language routing

Logging

  1. Basics
  2. Advanced usage

Number helper

  1. Usage

Pagination

  1. Usage
  2. Example view

Sessions

  1. Usage

String helper

  1. Usage

URL builder

  1. Usage

UUID helper

  1. Usage

Validation

  1. Usage
  2. Validation rules
  3. Custom messages
  4. Validator plugins

Views

  1. Basics
  2. View renderers
  3. Custom view renderers

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...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

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

In fact, authors have earned over $14 million writing, 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