Package Data | |
---|---|
Maintainer Username: | Uthmordar |
Maintainer Contact: | tanguyrygodin@gmail.com (Tanguy Godin) |
Package Create Date: | 2015-03-25 |
Package Last Update: | 2015-03-26 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-26 15:12:54 |
Package Statistics | |
---|---|
Total Downloads: | 6 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
packages for static page generation from view
this package use namespacing, take care of this when using classes.
$factory=new PagesFactory(); $factory->addPage($route, $static-page-path);
$staticify=new Staticify(); $staticify->generatePages($factory);
LARAVEL 5 SPECIFIC FEATURES :
register packages in config/app.php
'Uthmordar\Staticify\StaticifyServiceProvider'
aliases \Staticify && \PagesFactory generated by the StaticifyServiceProvider if you want to use these tools in your controller. These tools have Facade accessor, you could use them as follow in laravel.
\PagesFactory::addPage(config('app.url') . $this->pages[$i], $this->statics[$i]); \Staticify::generatePages(\PagesFactory::getFactory());
command for static pages generation
php artisan generate:staticPages /post view.file
php artisan generate:staticPages {/post::/aboutus} {view.post::view.aboutus}