定制 okaniyoshiii/framework 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-10-07