hi-folks/ghygen
Composer 安装命令:
composer create-project hi-folks/ghygen
包简介
The skeleton application for the Laravel framework.
关键字:
README 文档
README
Ghygen
Ghygen is a GitHub Actions configurator for your PHP / Laravel project.
Ghygen allows you creating your Yaml file for GitHub Actions, for Laravel/PHP web application, so you can:
- select triggering events: manually or automatically, when the developer push the code on a specific branch, or a developer create a new Pull Request;
- select branches;
- enable caching for all vendors;
- enable caching PHP packages;
- select multiple PHP versions (8.3, 8.2, 8.1, 8.0, 7.4);
- select multiple Laravel versions (11, 10, 9, 8, 7, 6), useful if you are developing a Laravel Package and you want to test it with multiple Laravel version;
- select Node version for NPM (executing scripts via
npm run); - caching node packages;
- setup Mysql Database service;
- setup PostgreSQL Database service;
- setup Sqlite in memory database;
- run migrations;
- execute tests via phpunit;
- execute tests via PestPHP;
- static code analysis with phpstan or psalm;
- create Sarif report (with Psalm) for GitHub integration with code scanning;
- code sniffer (via phpcs for PSR12 compatibility);
- validate Yaml file;
- execute Browser Test via Laravel Dusk.
- Run Deployments via Ploi using Ploi Deploy Action.
If you want to test and use quickly this tool, I deployed the codebase (develop branch) on Digital Ocean Platform:
If you want to start using it locally you can clone the repo and install it following the instructions below.
Command line
Ghygen is also a command line tool for generating automatically a GitHub Actions workflow Yaml file. You can install Gygen as project with composer:
composer create-project hi-folks/ghygen
cd ghygen
Once you installed Ghygen, you can execute:
php artisan ghygen:generate --projectdir=../otherproject
Where ../otherproject is the directory (absolute or relative path name) with your Laravel project (application or package) that yuo want to automatically generate the GitHub Actions workflow yaml file.
This command, will extract information from some project file like:
composer.jsonpackage.json(if it exists).envfile- ... and other assets
in order to guess a configuration for your GitHub Actions workflow.
By default, the command execution will show the Yaml workflow file in the standard output. If you want to save it in a file, for example the "my-workflow.yml" file, you can use --save option:
php artisan ghygen:generate --save=my-workflow.yml
If you want to autogenerate Yaml file in the .github/workflows directory use --save=auto:
php artisan ghygen:generate --save=auto
The file name will be created with the name value found in the composer.json.
So if you want to generate the workflow for the project in the directory ../myproject, you can execute the command with --projectdir and the --save options:
php artisan ghygen:generate --projectdir=../myproject/ --save=auto
The Ghygen Web version
Install the Web version
For running the Web version of Ghygen, you can clone source code, enter the new directory and perform a couple of instructions:
git clone https://github.com/Hi-Folks/gh-actions-yaml-generator.git
cd gh-actions-yaml-generator
make install
Then create your database and update the .env file with the right values for DB_* .
Once your Database is configured you can execute the migrations:
php artisan migrate
Start development server
php artisan serve
Open the browser to the URL: http://127.0.0.1:8000
Usage
Follow these steps:
- access to the form (by default the URL is http://127.0.0.1:8000 if you run php artisan serve);
- fill the form;
- click on "Generate Yaml File" button.
Next, copy the content of your generated Yaml in a new file in your Laravel project .github/workflows/laravel_workflow.yaml .
Commit and push the new file.
If you configured "On - Push" you will see the running Actions in your Actions section of your GitHub project.
Thanks to
Thanks to all the people for providing feedback, opening issues, creating Pull Requests. Thank you to all the contributors! You can see the list of contributors at this section.
In the PHP ecosystem, we have many tools that help developers work with great productivity, reliability, and efficiency. One of these tools is JetBrains PHP Storm. JetBrains supports the open-source community by providing licenses for open-source projects. You can find more information in the Open Source section of the JetBrains website.
JetBrains is providing me the license for the Ghygen project. This fills me with joy, because Ghygen has been recognized as a deserving open-source software. Thank you.
hi-folks/ghygen 适用场景与选型建议
hi-folks/ghygen 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 34 次下载、GitHub Stars 达 331, 最近一次更新时间为 2021 年 11 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hi-folks/ghygen 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hi-folks/ghygen 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hi-folks/ghygen 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Alfabank REST API integration
High-performance, opinionated PHP 8 web framework with O(1) routing, parallel async MySQL, type-safe asset bridge, and React-island frontend
Laravel package for Accurate Online API integration.
The skeleton application for the Geoffrey agent framework.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 331
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-20

