jonob / html
A port of Laravel 3's HTML class
Installs: 1 243
Dependents: 0
Suggesters: 0
Security: 0
Stars: 30
Watchers: 8
Forks: 49
Open Issues: 4
pkg:composer/jonob/html
Requires
- php: >=5.3.0
- illuminate/routing: 4.0.x
- illuminate/support: 4.0.x
README
This library was written by Meido, but is now maintained by JonoB
A port of Laravel 3's HTML class. Made to work with Laravel 4.
Usage
Composer Side
add "jonob/html": "1.1.*" to the require section of your composer.json so that it should look something the code below (you can, of course, include your own dependencies)
...
...
...
"require": {
...
...
...
"jonob/html": "1.1.*"
},
...
...
...
Laravel Side
add the following code to the providers section of the app/config/app.php file
'Jonob\HTML\HTMLServiceProvider',
so that it'll look something like the following
'providers' => array( ... ... ... 'Jonob\HTML\HTMLServiceProvider', ),
and add the following code to the aliases section of the app/config/app.php file
'HTML' => 'Jonob\HTML\HTMLFacade',
so that it'll look something like the following
'aliases' => array( ... ... ... 'HTML' => 'Jonob\HTML\HTMLFacade', ),
after that, run composer install and start hacking on that beast.
Changelog
1.1.*
- Reverted e() shortcut helper as it's already in the
Illuminate/Support(1.1.2) - Added e() shortcut method helper to HTML::entities() (1.1.1)
- below are the changes made in 1.1.0
FacadeandServiceProviderare moved a folder up following Laravel 4's convention of developing packages.- dependencies version are changed to
4.0.x - macro are now available thanks to Maxime Fabre
1.0.*
- tagged for stable. (1.0.0)
- updated
composer.jsonto stable channel. (1.0.1) - updated
composer.json'srequiresection to stable version. (1.0.2) - some API changes are made to follow simple function naming convention in laravel. (1.0.3)
HTML::linkare nowHTML::toHTML::linkSecureare nowHTML::secureHTML::linkRouteare nowHTML::routeHTML::linkActionare nowHTML::actionHTML::assetandHTML::secureAssetare added back
- added changelog section. (1.0.4)
- updated Facade namespace. (1.0.5)
- some tweaks are made. (1.0.6)
- since
HTMLonly requiresUrlGenerator, parameters passed are updated. - hence,
HTMLwould not be depending onilluminate/foundationin which none of it is actually used and will be usingilluminate/routinginstead whereUrlGeneratorresides.
- since
- version bump. (1.0.7)