railpage/railpagecore
Composer 安装命令:
composer require railpage/railpagecore
包简介
Railpage core code classes. More information available at https://github.com/doctorjbeam/railpagecore
关键字:
README 文档
README
This repository contains the core Railpage PHP objects formerly located under their respective modules.
Since Version 3.8 the core code has been progressively split from their UI modules and re-located into a PSR-4-compliant folder and file structure.
The classes have been namespaced under the \Railpage\ namespace, for example: \Railpage\Locos\Locomotive.
Installing
If you're not using Composer, you should. We have a lot of dependencies and Composer will save you a lot of time.
To start using the core code, execute ./composer.phar require railpage/railpagecore to grab and install.
Using
Make sure you're using Composer.
Assuming you've already included your Composer autoloader in your code, import the desired modules by placing a use operator at the top of your .php file. For example:
use Railpage\Locos\Factory as LocosFactory; $Loco = LocosFactory::CreateLocomotive($id); $Loco = LocosFactory::CreateLocomotive(null, "NR Class", "NR121");
统计信息
- 总下载量: 58
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-09-20