met_mw/phpstormmetagenerator
Composer 安装命令:
composer require met_mw/phpstormmetagenerator
包简介
PhpStorm meta-file generator (.phpstorm.meta.php).
README 文档
README
PhpStorm meta-file generator (.phpstorm.meta.php).
Install
composer require met_mw/phpstormmetagenerator
Example
See the folder "example" at package's root.
use PhpStormMetaGenerator\Drivers\HostCMS\AdminEntitiesDriver;
use PhpStormMetaGenerator\Drivers\HostCMS\EntitiesDriver;
use PhpStormMetaGenerator\MetaGenerator;
// Replace it by project root path
const CMS_FOLDER = '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR
. 'tests' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'hostcms' . DIRECTORY_SEPARATOR;
// Meta-file path
$phpStormMetaFilePath = CMS_FOLDER . '.phpstorm.meta.php';
// Modules directory path
$entitiesPath = CMS_FOLDER . 'modules';
// Administrator's area classes directory path
$adminEntitiesPath = CMS_FOLDER . 'adminentities';
$metaGenerator = new MetaGenerator($phpStormMetaFilePath);
$metaGenerator->addDriver(new DriverEntities($entitiesPath)) // Add entities driver
->addDriver(new DriverAdminEntities($adminEntitiesPath)) // Add admin-entities driver
->scan()
->printFile();
License
The met-mw/PhpStormMetaGenerator package is open-sourced software licensed under the MIT license
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-20