定制 matthewfl/restful 二次开发

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

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

matthewfl/restful

最新稳定版本:1.0.3

Composer 安装命令:

composer require matthewfl/restful

包简介

Library for writing RESTful PHP clients.

README 文档

README

Library for writing RESTful PHP clients.

Build Status

The design of this library was heavily influenced by Httpful.

Requirements

Issues

Please use appropriately tagged github issues to request features or report bugs.

Installation

You can install using composer, a phar package or from source. Note that RESTful is PSR-0 compliant:

Composer

If you don't have Composer install it:

$ curl -s https://getcomposer.org/installer | php 

Add this to your composer.json:

{ "require": { "bninja/restful": "*" } } 

Refresh your dependencies:

$ php composer.phar update 

Then make sure to require the autoloader and initialize both:

<?php require(__DIR__ . '/vendor/autoload.php'); Httpful\Bootstrap::init(); RESTful\Bootstrap::init(); ... 

Phar

Download an Httpful phar file, which are all here:

$ curl -s -L -o httpful.phar https://github.com/downloads/nategood/httpful/httpful.phar 

Download a RESTful phar file, which are all here:

$ curl -s -L -o restful.phar https://github.com/bninja/restful/downloads/restful-{VERSION}.phar 

And then include both:

<?php include(__DIR__ . '/httpful.phar'); include(__DIR__ . '/restful.phar'); ... 

Source

Download Httpful source:

$ curl -s -L -o httpful.zip https://github.com/nategood/httpful/zipball/master; $ unzip httpful.zip; mv nategood-httpful* httpful; rm httpful.zip 

Download the RESTful source:

$ curl -s -L -o restful.zip https://github.com/bninja/restful/zipball/master $ unzip restful.zip; mv bninja-restful-* restful; rm restful.zip 

And then require both bootstrap files:

<?php require(__DIR__ . "/httpful/bootstrap.php") require(__DIR__ . "/restful/bootstrap.php") ... 

Usage

TODO 

Testing

$ phpunit --bootstrap vendor/autoload.php tests/ 

Publishing

  1. Ensure that all tests pass
  2. Increment minor VERSION in src/RESTful/Settings and composer.json (git commit -am 'v{VERSION} release')
  3. Tag it (git tag -a v{VERSION} -m 'v{VERSION} release')
  4. Push the tag (git push --tag)
  5. Packagist will see the new tag and take it from there
  6. Build (build-phar) and upload a phar file

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Write your code and tests
  4. Ensure all tests still pass (phpunit --bootstrap vendor/autoload.php tests/)
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new pull request

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固