Mako is UTF-8 compatible and easy to use.
The configuration of the Mako Framework core is done in the index.php file.
Other app specific configs are in the app/config directory.
What is new in this release:
- Bugfix:
- Eager loading criteria now work as expected when eager loading in chunks.
What is new in version 4.5.4:
- Bugfix:
- Eager loading criteria now work as expected when eager loading in chunks.
What is new in version 4.5.2:
- Bugfix:
- Eager loading criteria now work as expected when eager loading in chunks.
What is new in version 4.4.5:
- IMPROVEMENT:
- Query::column() and Query::first() will now be a lot faster in some cases.
What is new in version 4.4.4:
- IMPROVEMENT:
- Query::column() and Query::first() will now be a lot faster in some cases.
What is new in version 4.4.0:
- NEW:
- Brand new reactor command line tool.
- Added optional $column parameter to the Query::column() method.
- Added Mako core class.
- Added Password::needsRehash() method.
- Added Request::isSafe() method.
- Added Session::getToken() method.
- Added Session::regenerateToken() method.
- Added Session::validateToken() method.
- Added token validation rule.
- Gatekeeper will automatically rehash passwords if needed.
- Added attribute, css, url and js escaping filters.
- Escape filters are now also available in plain PHP views.
- CHANGED:
- Moved init.php file from the framework core to the application.
- Removed the MAKO_VERSION constant (use Mako::VERSION instead).
- Removed the Password::isLegacyHash() method.
- Removed the $legacyCheck parameter from the Password::validate() method.
- Renamed Session::generateToken() method to Session::generateOneTimeToken.
- Renamed Session::validateToken() method to Session::validateOneTimeToken.
- Renamed token validation rule to one_time_token.
What is new in version 4.3.2:
- Fixed validator bug.
What is new in version 4.3.1:
- Fixed routing bug.
What is new in version 4.3.0:
- NEW:
- Added ViewFactory::exists() method.
- Views are now cascading. This means that you can override package views in your application.
- Language files are now cascading. This means that you can override package language files in your application.
- Added a ForbiddenException.
- Mako now includes default 403, 404, 405 error views that can easily be overriden.
- The ORM will now also forward non-static calls to the query builder.
- Added Connection::table() convenience method.
- Added Container::call() method (#116).
- Route actions are now executed by the Container::call() method (#118).
- Route filters are now executed by the Container::call() method (#119).
- Added a session NULL store.
- CHANGES:
- Moved all http exceptions to the mako\http\exceptions namespace.
- Renamed the PageNotFoundException to NotFoundException.
- Controllers, Tasks and Migrations now use the ContainerAwareTrait trait by default.
- The ORM::builder() method is now public.
- The Route::constraints() method has been renamed to Route::when().
What is new in version 4.2.0:
- NEW:
- Added Time::formatLocalized method.
- Added TimeZone class.
- Added a Stopwatch class (#113)
- Added support for nested template extension.
- Added optional migration descriptions.
- Added render shortcut method to the view factory class.
- It is now possible to configure Gatekeeper to identify users using their username instead of their email.
- CHANGES:
- The Time class has been moved to the to mako\chrono
- The locale config option has been removed. You now have to set the appropriate locale for each language instead.
- The ViewFactory::create method will now return an instance of mako\view\View instead of an implementation of mako\view\renderers\RendererInterface.
- Moved app/routes.php to app/routing/routes.php.
- Filters must now be defined in app/routing/filters.php.
- You can now use class filters in addition to closures.
- The UrlBuilder::current method will now include the current query parameters by default.
- Default Mcrypt encryption mode changed from ECB to CBC.
- Removed the app/packages directory. Packages will now be installed in the packagist vendor directory.
- Removed the global helper functions. They have been replaced with a trait and a class (NamespacedFileLoaderTrait and ClassInspector).
What is new in version 4.1.2:
- Fixed issue with date casting in the ORM.
What is new in version 4.1.1:
- Added missing returns in gatekeeper user implementation.
What is new in version 4.1.0:
- Added sepia filter to the image library.
- Added negate filter to the image library.
- Added pixelate filter to the image library.
- Added brightness adjustment to the image library.
- Added sharpening to the image library.
- Now possible to create and restore temporary snapshots when using the image library.
- Added support for language caching.
- Added Connection::isAlive() method.
- Added Connection::reconnect() method.
- Added Connection::beginTransaction() method.
- Added Connection::commitTransaction() method.
- Added Connection::rollBackTransaction() method.
- Added Connection::getTransactionNestingLevel() method.
- Added Connection::inTransaction() method.
What is new in version 4.0.7:
- BUGFIX:
- Escape exception message in debug template.
- NEW:
- Now possible to configure the date output format when converting ORM records to array and/or JSON.
What is new in version 4.0.6:
- Improved ORM::toArray() and ORM::toJson methods.
What is new in version 4.0.5:
- Fixed bug in the file based cache store.
What is new in version 4.0.0:
- A new and improved RESTful routing system
- A brand new authentication library
- A smart and easy to use dependency injection container
- Timestamped and OptimisticLocking traits for the ORM
- An image manipulation library that supports both GD and ImageMagick
What is new in version 3.6.6:
- Added support for APCU user cache.
What is new in version 3.6.4:
- Mako now uses the more secure $2y$ Blowfish mode when hashing passwords. The PHP version requirement has been bumped from 5.3.1+ to 5.3.7+.
What is new in version 3.6.2:
- ORM will now set the correct primary key value after inserting a new record while using PostgreSQL.
What is new in version 3.5.0:
- Mako is now installed and updated via composer.
- Whoops is used to displaying error information.
- Added Session::reflash method.
- Parent views will now have access to the variables defined in subtemplates.
- Fixed bug in Oracle query compiler.
- Development server now uses the specified environment.
What is new in version 3.4.0:
- Added a ORM.
- Added Arr::has method.
- Added Query::descending convenience method.
- Added Query::ascending convenience method.
- Removed the Model class.
- Removed the Format class.
What is new in version 3.3.2:
- Added Request::header method.
- Added Request::username method.
- Added Request::password method.
- Added Response::back method.
- Added cascading config loading.
What is new in version 3.3.1:
- Improved autoloading of package classes.
What is new in version 3.2.1:
- Simplified Redis command pipelining.
- Redis client now supports commands that contain spaces (CONFIG GET, CONFIG SET, etc...).
What is new in version 3.1.0:
- Added development server (requires PHP 5.4.0+).
- It is now possible to pluralize words inside a translated string.
- Added Russian language pack and inflection rules.
- Added Response::header method.
- Added Response::clearHeaders method.
- Added Response::type method.
- Added Response::charset method.
- Added Response::disableCaching method.
- Added Response::compress method.
- Added Response::disableCompression method.
What is new in version 3.0.4:
- Fixed package routing issue.
What is new in version 3.0.2:
- It is now easier to perform subrequests to package controllers.
What is new in version 3.0.0:
- Packages can now have their own routable controllers.
- Added interactive debug console.
- Added support for locale URLs.
- It is now possible to register custom view renderers.
- Added preserve filter to template syntax.
- Added Event::first method.
- Added Event::override method.
- Added CLI::newLine method.
- Added CLI::clearScreen method.
- Added CLI::screenWidth method.
- Added CLI::screenHeight method.
- Added CLI::style method.
- Added Crypto::encryptAndSign method.
- Added Crypto::validateAndDecrypt method.
- Added MAC class for signing strings using message authentication codes.
- Added debug toolbar log adapter.
- Added file based session handler.
What is new in version 2.3.3:
- Added Arr::isAssoc method.
- Added ClassLoader::registerNamespace method.
- Renamed ClassLoader::addClass method to ClassLoader::mapClass.
- Renamed ClassLoader::addClasses method to ClassLoader::mapClasses.
What is new in version 2.3.2:
- Added reactor task for performing database migrations.
- Added MAKO_VERSION constant.
- Added pipelining support to the Redis client.
- Fixed query builder bug.
What is new in version 2.3.0:
- Added a debug toolbar.
- Added mako\security\Password class.
- Added mako\security\Token class.
- Added support for EXISTS claues to query builder.
- Added support for subqueries to query builder.
- Added View::assignGlobal method.
- Added URL::matches method.
- Added String::alternator method.
- Added Database::profiler method.
- Added Connection::profiler method.
What is new in version 2.2.2:
- Now possible to set a default value for template blocks in parent views.
What is new in version 2.2.1:
- .gitignore files in assets/* no longer ignore all files by default.
What is new in version 2.2.0:
- Added support for template parsing to the view class.
- Added e (escape) helper function.
- Added dump_var helper function.
- Added optional text styles (bold, faded, underlined, blinking, reversed and hidden) to CLI::color.
- Removed the String::specialCharsEncode method.
- Removed the String::specialCharsDecode method.
- Renamed Database::FETCH constant to Database::FETCH_FIRST.
What is new in version 2.1.0:
- New database class with query builder that supports DB2, Firebird, MariaDB, MySQL, Oracle, PostgreSQL, SQLite and SQLServer.
- Added generic database cache adapter.
- Removed SQLite cache adapter.
- Database session adapter uses the new query builder.
- Default model uses the new database class.
- Fixed bug where a new log instance would be returned each time.
- Fixed bug where a new cache instance would be returned each time.
- Fixed bug where a Format::xml would fail if data was fetched using PDO::FETCH_OBJ.
- Fixed bug where a Format::csv would fail if data was fetched using PDO::FETCH_OBJ.
What is new in version 2.0.1:
- Added Event::clear() method.
- URL::base() will try to autodetect the base URL if its not configured.
- It is now possible to define the default fetch mode of the database class.
What is new in version 1.6.2:
- Added reactor CLI tool that handles tasks and installation of bundles.
- Added ClassLoader::addPsr0 method.
- Added magic shortcut to default cache instance.
- Added magic shortcut to default crypto configuration.
- Added CLI::screenSize method.
- Removed CLI related code from the web parts of the framework.
- Errors that are not caught by the default logger will now be logged to app/storage/logs/*.log.
What is new in version 1.6.1:
- Added Session::flash method that replaces the functionality of the Notification class.
- Added __isset method to cache adapter.
- Added __isset and __unset methods to cache adapter.
- Removed Notification class.
- Can now assign view variables when creating a view object.
- Improved english pluralization rules.
- Mako::bundle will now return NULL.
What is new in version 1.6.0:
- Improved English pluralization rules.
- No point in using the HTML class to generate a simple 'br' tag.
What is new in version 1.5.1:
- Improved exception messages.
- Growl class will now throw an exception if the server returns an error.
- Bugfix: No need to convert the application name to UTF8 twice in Growl class.
- Bugfix: Redis integer replies now returns an integer.
- Bugfix: Fixed possible XSS issue in the exception view.
What is new in version 1.5.0:
- Added Session class that supports database, native and redis storage.
- Added String::mask method.
- Added crop method to image class.
- Added colorize method to image class.
- Added ArrayTo class.
- Removed Request::urlSegment method.
- Improved String::random method.
- Memory cache adapter now supports TTL.
- Made location parameter in Response::redirect optional.
- Request::method now also works with HTTP_X_HTTP_METHOD_OVERRIDE.
- It is now possible to use closures in custom routes.
- Growl class now uses the new GNTP protocol.
- Fixed bug in redis client.
- Fixed bug in error handler.
What is new in version 1.4.1:
- Autoloader is compatible with apps made with Mako < 1.4.0 again.
What is new in version 1.3.0:
- Added class for generating and validating UUIDs.
- Added number helper class.
- Added class for setting and getting notifications ("flash messages").
- Added support for HTTPS in Gravatar class.
- Updated view error message.
- Security tokens and now application specific.
- Fixed bug in error template.
- Fixed bug in error handler.
Requirements:
- PHP 5.3.1 or higher
- iconv
- mbstring
- PDO
Comments not found