承接 effectra/contracts 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

effectra/contracts

最新稳定版本:v1.0.0

Composer 安装命令:

composer require effectra/contracts

包简介

The Effectra Common Interfaces package.

README 文档

README

The Effectra\Contracts package provides a set of contracts/interfaces that define the standardized behavior and contracts for various components used in the Effectra application.

Installation

You can install the package via Composer by running the following command:

composer require effectra/contracts

Usage

The package includes the following contracts/interfaces:

  • Http\RequestFoundationInterface: Defines the contract for creating a ServerRequestInterface instance from global variables.
  • Http\ResponseFoundationInterface: Defines the contract for sending a ResponseInterface instance.
  • Http\RouterDispatcher: Extends RouterInterface and provides additional methods for adding requests and responses to the dispatcher.
  • Http\RouterInterface: Defines the contract for a router that dispatches server requests and returns responses.

To use any of these interfaces, simply implement them in your classes:

use Effectra\Contracts\Http\RequestFoundationInterface;
use Psr\Http\Message\ServerRequestInterface;

class MyRequestFoundation implements RequestFoundationInterface
{
    public static function createFromGlobals(): ServerRequestInterface
    {
        // Implement your logic here to create and return a ServerRequestInterface instance from global variables
    }
}

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository of this package.

License

This package is open-source and licensed under the MIT License.

About Effectra

Effectra is a leading technology company specializing in innovative solutions for [describe what Effectra does and its main areas of expertise].

For more information about Effectra, visit our website: https://www.effectra.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固