okaniyoshiii/framework
Composer 安装命令:
composer require okaniyoshiii/framework
包简介
A personnal PHP framework for my own workflow
README 文档
README
Requirements
- PHP v8.2 and higher
- Composer
- Nodejs
Initialize project
First, run the following command :
composer require okaniyoshii/framework
Next, you'll have to add a .php file that you will then run in the shell.
I recommand creating a cmd folder with a shell file inside it (without extension)
Then, add the following lines of code into that file :
<?php use OkaniYoshiii\Framework\ShellProgram; require_once __DIR__ . '/../vendor/autoload.php'; ShellProgram::start($argv);
Once it's done, run the following command :
php cmd/shell app:init
This should create a project folder structure for you !
Now, you should be able to see a 'Hello, world !' page in your browser.
Troubleshooting
1 - File permissions errors : When initializing project folder structure, it's possible that permission file errors occurs. In that case, you can either change file permissions to allow copy of files or copy files in the structure folder of the framework and paste them in your project directory.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-10-07