承接 jenky/jsonplaceholder 相关项目开发

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

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

jenky/jsonplaceholder

Composer 安装命令:

composer require jenky/jsonplaceholder

包简介

JSON Placeholder SDK

README 文档

README

Latest Version on Packagist Github Actions Codecov Total Downloads Software License

This repository serves as a demonstration of how you can build your SDK/integration with JsonPlaceholder service using Fansipan library.

Installation

You can install the package via composer:

composer require jenky/jsonplaceholder

Usage

Create new SDK instance

$sdk = new Jenky\JsonPlaceholder();

Get list of users

// GET https://jsonplaceholder.typicode.com/users
$sdk->users()->get();

// GET https://jsonplaceholder.typicode.com/users?_limit=5
$sdk->users()->get(limit: 5);

// GET https://jsonplaceholder.typicode.com/users?_page=2
$sdk->users()->get(page: 2);

Get an user by ID

// GET https://jsonplaceholder.typicode.com/users/1
$sdk->users()->id(1)->find();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email contact@lynh.me instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-09