folklore / laravel-hypernova
Laravel PHP package to use Hypernova server-side rendering service.
Requires
- php: >=5.5.9
- illuminate/support: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*
- ramsey/uuid: ^3.5
- wayfair/hypernova-php: ^1.0
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: 0.9.*|1.0.*
- orchestra/testbench: 3.1.*|3.2.*|3.3.*|3.4.*|3.5.*|3.6.*|3.7.*
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ~4.0|~4.1|~5.4|~5.7|~6.0|~7.0
This package is auto-updated.
Last update: 2024-11-19 09:49:16 UTC
README
Laravel Hypernova is a package to use the Hypernova server-side rendering service from Airbnb (https://github.com/airbnb/hypernova). It enables you to render Javascript UI views on the server and use it in your Laravel views. The advantage of this technique is that the response will contain the actual HTML of your Javascript views and helps on things like SEO.
Installation
Dependencies:
Installation:
1- Require the package via Composer in your composer.json
.
{ "require": { "folklore/laravel-hypernova": "~0.1.0" } }
2- Run Composer to install or update the new requirement.
$ composer install
or
$ composer update
3- Add the service provider to your app/config/app.php
file
'Folklore\Hypernova\HypernovaServiceProvider',
4- Add the facade (optional) to your app/config/app.php
file
'Hypernova' => 'Folklore\Hypernova\Facades\Hypernova',
5- Publish the configuration file and public files
$ php artisan vendor:publish --provider="Folklore\Hypernova\HypernovaServiceProvider"
6- Review the configuration file
app/config/hypernova.php