承接 pscheit/psc-cms-boot 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

pscheit/psc-cms-boot

最新稳定版本:2.3.0

Composer 安装命令:

composer require pscheit/psc-cms-boot

包简介

Boot strapping package for Webforge

README 文档

README

PHP Bootloading Sucks - at least that helps to suck a little more less

Build Status

  • manages to load the autoload for composer (even if you're bootstrapping as a dependency)
  • helps in early stages bootstrapping
  • lets you bootstrap a Psc - CMS - Container for Psc - CMS - Projects

Copy the lib/package.boot.php next to your bootstrap.php

use Psc\Boot\BootLoader;

require 'package.boot.php';
$bootLoader = new BootLoader(__DIR__, 'ACME\Container');
$bootLoader->loadComposer();
$bootLoader->registerContainer(); // this is optional

When you registered the Container $GLOBALS['env']['container'] points to the ACME\Container. When you do $bootLoader->registerRootDirectory the $GLOBALS['env']['root'] points to a \Webforge\Common\System\Dir which is the directory of your bootstrap.php (given here as DIR).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-08