Releases: app-zap/PHPFramework
Releases · app-zap/PHPFramework
1.4.0
Important Changes
Since 1.3
- Routing: Instead of using regular expressions you can now use a simplified syntax to define your routes. You still have the options of regular expressions when you need the flexibility.
- Massive code cleanups, including streamlined camelCasing of all variables and method names.
- The documentation is still incomplete but was improved and covers all important changes of this release.
- Integrate a new MailService based on swiftmailer.
- Send UTF-8 header to the browser by default (configurable through settings.ini).
- Better detection of project root, so no more
$_ENV['AppZap\PHPFramework\ProjectRoot'] = dirname(__FILE__);
in yourindex.php
. - Removed airbrake support which is now delivered by the airbrake plugin.
- More and better Unit Tests.
- A couple of more small tweaks, bugfixes and features.
Upgrade instructions:
Coming from 1.3 you need to consider the following things to keep your application working:
- When methods were renamed for the camelCase streamlining the old names were kept but deprecated. They still work, but will be gone in 1.5. Upgrade them soon. This also applies to getters and setters of your model classes.
- Routing: The host name (and optionally the path to your application) is now stripped from the url for routing, so the matching is done with the rest of the string without leading slash! You might need to adapt your routes definitions. => documentation
1.3.0
Important Changes
Since 1.2
- documentation! RTFM! (not complete, but it's a start)
- Plugins: It's now possible to write Plugins for PHPFramework enhancing or modifying its functionality
- SignalSlot: PHPFramework now provides a SignalSlot system that can be used by plugins and applications to hook into certain points in the framework and run their own code.
- composer dependencies:
- updated Twig to 1.16
- switched to other distribution of airbrake
- require PHPUnit only if in dev mode
- Most configuration options
setting.ini
have been renamed to streamline the overall namings. - Callable routing: in your
routes.php
you can now also provide a PHP callable instead of the controller classname.
Upgrade instructions:
Coming from 1.2 you need to consider the following things to keep your application working:
- Renamed configuration options. Consult the manual about the current naming of all available options. Most of the renamings are found in this commit.
- Airbrake is now disabled by default, you need to set
airbrake.enabled = 1
explicitly to enable it if you want to use it.
1.2.1
Since 1.1 these are the important changes:
- Now you can use Domain Driven Design for your data model. Including Models, Repositories, Collections and ORM.
- PSR-4 autoloading for all classes.
BaseAutoloader
is gone. - Completely new PHPUnit test suite
- New
Bootstrap
class that loads and invokes everything. => shorterindex.php
for your project - PDO-based database connection for easier switch to other databases.
- New Caching Framework, powered by Nette Caching.
- Global accessible
Configuration
class that stores values from yoursettings.ini
- Global accessible
StaticDatabaseConnection::getInstance()
providing you a lazy initialized database connection. - New
HttpStatus
component handling HTTP Status field.