3.x has a very minimal BC break. But if you are not sure what are they, then you may feel the pain. I am trying to document most of them, incase I missed please edit and send a pull request.
I will try to eventually pushed to the main Aura.Di repo.
BC Breaks # Instantiation # The way di container is instantiated has been changed from
Aura v2 framework probably have missed a better way to handle environment variables. But that doesn’t make you stall. Things can be improved ;-).
Assume you are already using aura framework and is at root of the project.
We are going to make use of vlucas/phpdotenv , alternatives are there if you are interested to experiment.
1 composer require vlucas/phpdotenv Edit the file config/_env.php and add Dotenv::load(/path/to/.env); to the first line. If you have not modified anything it will look as below
Aura v2 added auto resolution in-order to help lazy people writing configuration manually. Even though it was introduced to help, it introduced a few issues.
So auto resolution will be disabled in the future. Some of the complains/suggestions are how to easily write the di configuration.
So introducing you FOA.DiConfig
Installation # 1 composer require foa/di-config Usage # 1 2 3 vendor/bin/di-config-dump Usage : vendor/bin/di-config-dump /real/path/to/file.php Usage : vendor/bin/di-config-dump /real/path/to/directory Example 1 # Let’s assume you have
Yesterday aura framework v2 stable released.
Lots of complains about documentation or missing documentation. So this is a quick start. Probably a five minutes walk through. Learn and change to make it better.
Creating your project # Create the project using composer.
1 2 composer create-project aura/web-project quick-start cd quick-start The minimal framework don’t come with any sort of view integrated. Let us use aura/view, the two step templating with the help of foa/html-view-bundle.
Rob Allen wrote about Integrating ZF2 forms into Slim. I did write how you can use Aura.Input and Aura.Html to create standalone form for PHP. This time I felt I should write about integrating aura input inside Slim.
Let us install a few dependencies aura/input for building the form and aura/html for the html helpers. You of-course can skip not to use aura/html and build your own helper. I also purposefully left not integrating the powerful Aura.Filter , but you are not limited to integrate any validator you love inside Aura.Input .
Aura has an awesome collection of libraries for different purpose.
It has components for authentication, cli, request and response, router, dependency injection container, dispatcher, html, view, event handlers, validation, extended pdo, query builders, sql schema, marshal, build and modify uri, http, internationalization, session, forms, includer.
If you are new to aura, there is probably something you may want to figure out yourself.
Some of the components have version 1 and version 2 releases. There is a question of which branch corresponds to which version.
The v1 packages are in develop branch and v2 over develop-2 branch.
Aura.Html provides HTML escapers and helpers, including form input helpers, that can be used in any template, view, or presentation system.
In this post I would like to give you a short introduction to Aura.Html and how you could use with Plates a native php templating system like Aura.View.
Aura.Html was extracted from Aura.View helper functions of version 1, when we at aura noticed that people who uses Aura.Input may need some html helper functions and they may not be using a templating like Aura.View, but some other templating system.
In this tutorial I am showing how to install aura framework project v2 via composer.
composer create-project -s beta aura/framework-project path-to-project Aura.Framework_Project helps you to build web and cli applications.
If you need only web based application then Aura.Web_Project is what you need.
{% showterm b971330ea7fd28d22e2f3 %}
If you need only cli, then Aura.Cli_Project helps you.
2 days back Paul M Jones wrote an awesome post A Peek At Aura v2 – Aura.Dispatcher the idea behind Aura.Dispatcher and how it was born.
So today, let us try to integrate Aura.Dispatcher with Silex. This post is inspired by the comment made by Luis Cordova. Thank you.
1 2 3 composer create-project silex/silex --no-dev silexproject cd silexproject composer require aura/dispatcher dev-develop-2 I hope you have composer installed else get composer.
I am not going to explain each and everything, the code is self explanatory. You can move the classes according to your wish (may be to another folder). I am trying to show a simple use case.
If you have noticed recently, there have been tons of commits from Paul M Jones for aura version 2.
More standalone repos born. Everyone should try and give feedback as much as possible.
Interesting stuffs split from Aura.Sql v 1.3 are
Extended PDO,
As the name says, it is an extended version of PDO. Good thing is it is PHP 5.3 compatible.
If you have worked with PDO you know the good and bad. One of the difficulty is, it cannot use an array for an in clause.