定制 fraction-framework/fraction 二次开发

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

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

fraction-framework/fraction

最新稳定版本:1.2.6

Composer 安装命令:

composer require fraction-framework/fraction

包简介

Attribute-driven PHP framework

README 文档

README

Fraction Logo

Latest Stable Version Total Downloads License

Fraction Framework

Fraction is an attribute-based framework. The main perpose of Fraction is to provide a simple tool for building self-documenting RESTful APIs, wheareas it can be used for building any kind of web application. Note that Fraction is still in development and is not recommended for production use. Many features are still missing.

Documentation

For a comprehensive guide on how to use Fraction Framework, detailed information on its features, and best practices, please visit the official Fraction Framework documentation.

Installation

To create a new project with Fraction, open your terminal and navigate to the directory where you want to create your project. Run the following command:

composer create-project fraction-framework/starter your_project_name

Replace your_project_name with the desired name for your project. This command will create a new directory with the specified project name and install the latest version of Fraction and its dependencies.

Alternatively, you can install Fraction as a dependency in an existing project. To do so, run the following command:

composer require fraction-framework/fraction

Basic Usage

Creating your first API endpoint is as simple as follows:

#[Route(RequestMethod::GET, '/')]
#[View(response: ResponseType::JSON)]
public function index(): array {
  return ['message' => 'Hello World!'];
}

For more information on how to use Fraction, please refer to the documentation.

Demo Application

To see Fraction Framework in action, we have provided a demo application showcasing its various features and functionalities. You can find the demo application here. This will help you better understand the framework's structure and provide a solid starting point for building your own applications using Fraction.

License

Fraction is licensed under the MIT License.

统计信息

  • 总下载量: 43
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-25