PHPackages                             alphaolomi/json-placeholder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. alphaolomi/json-placeholder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alphaolomi/json-placeholder
===========================

This is my package json-placeholder

v2.0.0(1y ago)1217[1 PRs](https://github.com/alphaolomi/json-placeholder/pulls)MITPHPPHP ^8.1

Since Mar 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/alphaolomi/json-placeholder)[ Packagist](https://packagist.org/packages/alphaolomi/json-placeholder)[ Docs](https://github.com/alphaolomi/json-placeholder)[ RSS](/packages/alphaolomi-json-placeholder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

Json Placeholder for PHP
========================

[](#json-placeholder-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b0ca26a5b94989771a2dbd1cfef5846f7a63f82fd07af3d468c362783a91c10c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c7068616f6c6f6d692f6a736f6e2d706c616365686f6c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alphaolomi/json-placeholder)[![Tests](https://camo.githubusercontent.com/972c1961b36d83c478c67317ad5ba50b46065c27494f75e19027ab0b6de55d4a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616c7068616f6c6f6d692f6a736f6e2d706c616365686f6c6465722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/alphaolomi/json-placeholder/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/c98bf42265cdb23ef39d8792f80d018f532b55eca9a00e19df593695a15ee2ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c7068616f6c6f6d692f6a736f6e2d706c616365686f6c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alphaolomi/json-placeholder)

A PHP SDK for the [JSON Placeholder API](https://jsonplaceholder.typicode.com/).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require alphaolomi/json-placeholder
```

Usage
-----

[](#usage)

```
$api = new Json\Api();

$users = $api->users()->list();

foreach($users as $user) {
    echo $user->name;
}
```

Shorthand

```
$users =  (new Json\Api())->users()->list();

print_r($users);

// array:10 [
//   0 => array:8 [
//     "id" => 1
//     "name" => "Leanne Graham"
//     "username" => "Bret"
//     "email" => "Sincere@april.biz"
//     "address" => array:5 [▶]
//     "phone" => "1-770-736-8031 x56442"
//     "website" => "hildegard.org"
//     "company" => array:3 [▶]
//   ]
//   1 => array:8 [▶]
// ]
```

Paginated Results
-----------------

[](#paginated-results)

You may prefer to retrieve all the results from the paginated requests by using the `paginator` method on the SDK.

```
$api = new Json\Api();

$results = $api->users()->paginate();

foreach($results as $result) {
    // Handle result
    echo $result->name;
}
```

Available Resources
-------------------

[](#available-resources)

- Users
    - List all users
    - Get a single user
    - Create a user
    - Update a user
    - Delete a user
    - Paginate users

Testing
-------

[](#testing)

Using PestPHP Testing framework, run the following command to execute the tests.

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Alpha Olomi](https://github.com/alphaolomi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~177 days

Total

4

Last Release

628d ago

Major Versions

v0.2.0 → v1.0.0-beta2024-04-15

v1.0.0-beta → v2.0.02024-08-21

PHP version history (2 changes)v0.1.0PHP ^8.1

v0.2.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7534dd7341d883267be41935354b56c27f94d6bbd6a7abd9f257bb2d494a3798?d=identicon)[alphao](/maintainers/alphao)

---

Top Contributors

[![alphaolomi](https://avatars.githubusercontent.com/u/10551599?v=4)](https://github.com/alphaolomi "alphaolomi (24 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

jsonplaceholderphpphp-librarysdkalphaolomiJson placeholder

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/alphaolomi-json-placeholder/health.svg)

```
[![Health](https://phpackages.com/badges/alphaolomi-json-placeholder/health.svg)](https://phpackages.com/packages/alphaolomi-json-placeholder)
```

###  Alternatives

[crescat-io/saloon-sdk-generator

Simplified SDK Scaffolding for Saloon

13130.9k7](/packages/crescat-io-saloon-sdk-generator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
