uthmordar/static

package for web view static page generation, laravel 5 extra features (services provider, command line)

dev-master 2015-03-26 08:25 UTC

This package is not auto-updated.

Last update: 2024-11-23 18:01:28 UTC


README

Build Status

Staticify Package

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}