uthmordar/static
Composer 安装命令:
composer require uthmordar/static
包简介
package for web view static page generation, laravel 5 extra features (services provider, command line)
README 文档
README
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}
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-25