Download the PHP package yepsua/smartwig without Composer
On this page you can find all versions of the php package yepsua/smartwig. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yepsua/smartwig
More information about yepsua/smartwig
Files in yepsua/smartwig
Package smartwig
Short Description Ultimate Components Extension for Twig.
License MIT
Homepage http://smartwig.yepsua.com
Informations about the package smartwig
SmarTwig
Ultimate Components Extension for Twig.
You can use Twig and SmarTwig and any PHP Project.
Installation
You can install the SmarTwig in 2 different ways:
- Use the Git repository
- Install it via Composer on Packagist
The Assets:
All the SmarTwig Components need some .css and .js files to work.
Get the resources cloning the Git repository or [ Download the Zip] (https://github.com/oyepez003/jquery4php-assets/archive/master.zip)
Put content of the repo in your app public folder.
How To Use (3 Ways)
1) The Ugly Way:
Load all Extensions and the Builders Configuration step by step.
2) The Short Way:
Load all Extensions and the Builders Configuration in one line of code.
3) The Pretty Way:
Load all Extensions and the Builders Configuration using The IoC Symfony Component.
You need add to your composer.json the next dependencies:
Now you can write all the services configuration in the service.xml file:
This way is the most recommended for performance and scalability.
Basic Usage
The /index.php content:
The /templates/index.html content:
Info:
The smartwigAssets.html is an example file for test all the SmarTwig Components, You must edit this file for include only that you need.
The Sf2 Bundle
If you are using Sf2 Framework we recommend the SmarTwigBundle
Enjoy