PHPackages                             hands-on-ekino-php/your-client - 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. hands-on-ekino-php/your-client

ActiveLibrary

hands-on-ekino-php/your-client
==============================

test

v1(1y ago)0312[1 PRs](https://github.com/brociani/hands-on-library/pulls)MITPHPCI passing

Since Mar 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/brociani/hands-on-library)[ Packagist](https://packagist.org/packages/hands-on-ekino-php/your-client)[ RSS](/packages/hands-on-ekino-php-your-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (4)Used By (0)

HandsOnEkinoPhp Your Client
===========================

[](#handsonekinophp-your-client)

A PHP client library for interacting with the JSONPlaceholder API, with easy Symfony integration.

Features
--------

[](#features)

- Simple and clean API client for JSONPlaceholder
- Easy integration with Symfony applications
- Customizable HTTP client configuration
- Optional clock emoji header for fun

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

[](#installation)

Install the library via composer:

```
composer require hands-on-ekino-php/your-client
```

Usage
-----

[](#usage)

### Basic usage with Symfony

[](#basic-usage-with-symfony)

1. Register the bundle in your `config/bundles.php`:

```
return [
    // ...other bundles
    HandsOnEkinoPhp\YourClient\Bridge\Symfony\HandsOnEkinoPhpBundle::class => ['all' => true],
];
```

2. Configure the client in your `config/packages/hands_on.yaml`:

```
hands_on_ekino_php:
    client:
        clock_header: true  # Set to false to disable the clock emoji header
        name: todos_client  # The name of your HTTP client service
```

3. Configure your HTTP client in `config/packages/framework.yaml`:

```
framework:
    http_client:
        scoped_clients:
            todos_client:
                base_uri: 'https://jsonplaceholder.typicode.com'
```

4. Use the client in your actions or services:

```
