PHPackages                             nicodemuz/php-getimg.ai - 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. nicodemuz/php-getimg.ai

ActiveLibrary

nicodemuz/php-getimg.ai
=======================

PHP SDK for GetImg.ai image generation service.

v1.0.1(1y ago)2639MITPHPPHP &gt;=8.3.0CI passing

Since Dec 2Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/nicodemuz/php-getimg.ai)[ Packagist](https://packagist.org/packages/nicodemuz/php-getimg.ai)[ RSS](/packages/nicodemuz-php-getimgai/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

PHP GetImg.ai SDK 📷🎨
====================

[](#php-getimgai-sdk-)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)[![PHP Version](https://camo.githubusercontent.com/ef0054230522e542bc1f908ac005c6c75888dea255bac910f9015e12095e31d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e332d626c7565)](https://camo.githubusercontent.com/ef0054230522e542bc1f908ac005c6c75888dea255bac910f9015e12095e31d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e332d626c7565)[![Composer](https://camo.githubusercontent.com/29c58fe43f360e521037b369df8d7f07190703c50a51143d4b94f01248252c89/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d636f6d70617469626c652d627269676874677265656e)](https://camo.githubusercontent.com/29c58fe43f360e521037b369df8d7f07190703c50a51143d4b94f01248252c89/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d636f6d70617469626c652d627269676874677265656e)

**nicodemuz/php-getimg.ai** is a modern, lightweight PHP library designed to integrate seamlessly with the [GetImg.ai](https://getimg.ai/) image generation API. Quickly generate stunning AI-powered images for your projects with just a few lines of code.

This package is currently under development. There is only support for text-to-image generation &amp; inpainting. Pull requests for other features are welcome.

---

Features 🚀
----------

[](#features-)

- **PSR-18 and PSR-17 Compatibility**: Fully compliant with PSR-18 (HTTP Client) and PSR-17 (HTTP Factories) standards, ensuring seamless integration with any compatible HTTP client and factory implementation.
- **Comprehensive API Coverage**: Access all GetImg.ai image generation features.
- **Flexible Configuration**: Customize HTTP client, request factories, and other dependencies to suit your project.
- **Lightweight**: Minimal dependencies for fast and efficient performance.

---

Installation 💻
--------------

[](#installation-)

Install the package via Composer:

```
composer require nicodemuz/php-getimg.ai
```

Installation 💻
--------------

[](#installation--1)

Install the package via Composer:

```
composer require nicodemuz/php-getimg.ai
```

### Installing PSR-17 and PSR-18 dependencies

[](#installing-psr-17-and-psr-18-dependencies)

To use this library, you'll need PSR-17 (HTTP Factories) and PSR-18 (HTTP Client) compatible packages. If you don't already have them, you can install popular implementations such as:

1. **Guzzle** (for PSR-18) and **Nyholm/psr7** (for PSR-17):

    ```
    composer require guzzlehttp/guzzle nyholm/psr7
    ```
2. **Symfony HTTP Client** (alternative for PSR-18) and **Symfony HTTP Factories** (for PSR-17):

    ```
    composer require symfony/http-client symfony/psr-http-message-bridge
    ```

After installation, initialize the required dependencies in your project as shown in the usage example.

---

Usage 📖
-------

[](#usage-)

### Basic Example

[](#basic-example)

```
