定制 uthmordar/static 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

uthmordar/static

Composer 安装命令:

composer require uthmordar/static

包简介

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

README 文档

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}

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-25