2017 © Pedro Peláez
 

library collective-html

LaravelCollective Html and Form builder for Lumen.

image

vluzrmos/collective-html

LaravelCollective Html and Form builder for Lumen.

  • Thursday, October 6, 2016
  • by vluzrmos
  • Repository
  • 3 Watchers
  • 24 Stars
  • 16,325 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 441 Forks
  • 3 Open issues
  • 17 Versions
  • 3 % Grown

The README.md

Forms & HTML

Join the chat at https://gitter.im/vluzrmos/collective-html Lumen Version Latest Stable Version Total Downloads Latest Unstable Version License Build Status, (*1)

Official documentation for Forms & Html for The Laravel/Lumen Framework can be found at the LaravelCollective website., (*2)

Instalation on Lumen

composer require vluzrmos/collective-html

Configuration

On your bootstrap/app.php:, (*3)

$app->register('Collective\Html\HtmlServiceProvider');

class_alias('Collective\Html\HtmlFacade', 'Html');

class_alias('Collective\Html\FormFacade', 'Form');

And remember to enable de facades, just uncomment that line:, (*4)

$app->withFacades()

If you want to automatically inject the $html and $form variables on all your Blade's View:, (*5)

$app->register('Collective\Html\InjectVarsServiceProvider');

And now you will not need the facades anymore, just that:, (*6)

{!! $form->open() !!}
//...
{!! $html->asset() !!}

Known Issues

Lumen UrlGenerator doesn't support route('route.name', $id), because that you have to use an associative array:, (*7)

{!! Form::open(['route' => ['route.name', ['id' => $id ] ]]) !!}

Lumen UrlGenerator do not generate correctly urls on console commands or non-browser requests, to fix that I suggest you to install my other package:, (*8)

composer require vluzrmos/lumen-url-host

And add lumenUrlHost('your-disired.domain:port'); at the top of your bootstrap/app.php file., (*9)

Link: vluzrmos/lumen-url-host., (*10)

Replacing LaravelCollective/Html

If your project require some package that requires laravelcollective/html, you can edit your composer.json to:, (*11)

for Lumen 5.1:, (*12)

"vluzrmos/collective-html": "1.0.9 as 5.1",
"package-vendor/package-required-name":"package-version" //that requires laravelcollective/html 5.1

for Lumen 5.0:, (*13)

"vluzrmos/collective-html": "1.0.9 as 5.0",
"package-vendor/package-required-name":"package-version" //that requires laravelcollective/html 5.0

Note: use version 1.0.9 or the latest vluzrmos/collective-html version., (*14)

Credits

That package is just a free modification of LaravelCollective/Html to work with Lumen Framework., (*15)

The Versions

06/10 2016

dev-master

9999999-dev

LaravelCollective Html and Form builder for Lumen.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Engebretson

lumen form html builder

06/10 2016

v1.0.13

1.0.13.0

LaravelCollective Html and Form builder for Lumen.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Engebretson

lumen form html builder

27/04 2016

v1.0.12

1.0.12.0

LaravelCollective Html and Form builder for Lumen.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Engebretson

lumen form html builder

27/04 2016

v1.0.11

1.0.11.0

LaravelCollective Html and Form builder for Lumen.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Engebretson

lumen form html builder

25/09 2015

v1.0.10

1.0.10.0

LaravelCollective Html and Form builder for Lumen.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Engebretson

lumen form html builder

11/07 2015

v1.0.9

1.0.9.0

LaravelCollective Html and Form builder for Lumen.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Engebretson

lumen form html builder

11/07 2015

v1.0.8

1.0.8.0

LaravelCollective Html and Form builder for Lumen.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Engebretson

lumen form html builder

10/07 2015

v1.0.7

1.0.7.0

LaravelCollective Html and Form builder for Lumen.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Engebretson

lumen form html builder

10/07 2015

v1.0.6

1.0.6.0

LaravelCollective Html and Form builder for Lumen.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Engebretson

lumen form html builder

18/06 2015
06/05 2015

5.0.x-dev

5.0.9999999.9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Engebretson