php-school/workshop-manager
Composer 安装命令:
composer require php-school/workshop-manager
包简介
A tool to help find and install PHP School workshops
README 文档
README
A tool to manage your PHP School workshops. Search, install, update & remove workshops with ease!
Installation
Phar
This is the recommended installation method.
curl -O https://php-school.github.io/workshop-manager/workshop-manager.phar
mv workshop-manager.phar /usr/local/bin/workshop-manager
chmod +x /usr/local/bin/workshop-manager
workshop-manager verify
Composer
If you install the workshop-manager via composer you will need to make sure that you don't have conflicting dependencies with other globally installed tools. Also you will need to be able to use the self-update and rollback commands.
You will need to make sure that your composer global bin directory is available in your $PATH environment variable.
composer global require php-school/workshop-manager
workshop-manager verify
This snippet downloads the phar package (an executable PHP package) and moves it to a common install directory, makes it executable and then runs the workshop manager's verify command. You should see some green success messages if everything went will.
Usage / Commands
Search | Find
Quickly find available workshops by part of its name and get an instant indication if they're already installed.
workshop-manager search php # Result *** Matches *** +----------------+--------------------------------------------------+-------------+-----------+------------+ | Name | Description | Code | Type | Installed? | +----------------+--------------------------------------------------+-------------+-----------+------------+ | Learn you PHP! | A simple introduction into PHP and the workshop | learnyouphp | Core | ✘ | | | format. | | | | | PHP7 way | A PHP School workshop about some new features in | php7way + Community | ✘ | | | PHP7. | | | | +----------------+--------------------------------------------------+-------------+-----------+------------+
Install
Install a workshop with its package field, you can find this by doing a search like above.
workshop-manager install learnyouphp
You can then get started on your workshop instantly by using its package name, in this case you would just run learnyouphp on the terminal.
Tip: If an error ever occurs and your not sure what it is, run it with -vvv to get more details or create an issue for us to look at
Update
A simple way to update a workshop you already have installed. As workshops are just packages they may include bugs 😱 so keeping them up to date is important!
workshop-manager update learnyouphp
Uninstall | Remove
Remove a workshop by its package name.
workshop-manager uninstall learnyouphp
Installed
List the installed workshops, just so you know what you can get working on 😉
It will also let you know if you need to update any workshops that you already have installed.
workshop-manager installed # Result *** Installed Workshops *** +----------------+-------------------------------------------------+-------------+-----------+---------+------------------------+ | Name | Description | Code | Type | Version | New version available? | +----------------+-------------------------------------------------+-------------+-----------+---------+------------------------+ | Learn you PHP! | A simple introduction into PHP and the workshop | learnyouphp | Community | 0.3.1 | Nope! | | | format. | | | | | +----------------+-------------------------------------------------+-------------+-----------+---------+------------------------+
Self-update
Keeping the workshop manager up to date is just as important as updated the workshops themselves. We're not perfect and there are probably bugs, or maybe we'll launch some uber cool features, either way you should run this on a regular basis.
workshop-manager self-update
You can then continue using the workshop manager as you were before.
Rollback
Something go horribly wrong after that self-update ? No worries we got your back 😉 just run...
workshop-manager rollback
Then you might want to create an issue for that horrible bug you found 😂
Verify
You might need to verify your installation if your running into problems. This command will help diagnose those issues and point you in the right direction.
workshop-manager verify
Contributing
We welcome all contributions, new workshops, typos, feature requests bug fixes and so on.
To contribute to the code just clone the project, do your changes and make sure all the tests run.
Adding Workshops
We'd love to add your workshop so it can be installed with the workshop manager. To do so just fill in the form and let us take a look at things, we'll be pretty quick at getting it added!
Deveopment Executable
Whilst developing awesome new features you'll want to use the source executable and not a built phar file. To do so just run the following...
php bin/workshop-manager
Testing
Hmmmmm tests, we all love a good test! To run the suite use PHPUnit like so...
composer test
Made with ❤️ by the PHPSchool Team
php-school/workshop-manager 适用场景与选型建议
php-school/workshop-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 133 次下载、GitHub Stars 达 21, 最近一次更新时间为 2016 年 10 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 php-school/workshop-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 php-school/workshop-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 133
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-25