uthmordar/static

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

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/uthmordar/static

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

This package is not auto-updated.

Last update: 2025-12-07 00:17:57 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}