PHPackages                             hosonode/easyai-php - 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. [API Development](/categories/api)
4. /
5. hosonode/easyai-php

ActiveLibrary[API Development](/categories/api)

hosonode/easyai-php
===================

EasyAI-PHP is an open-source initiative designed to significantly simplify the entry into artificial intelligence for PHP-developers.

v0.5.3(1y ago)10641[2 issues](https://github.com/HosonoDE/EasyAI-PHP/issues)MITPHPPHP ^8.1

Since Apr 15Pushed 1y ago2 watchersCompare

[ Source](https://github.com/HosonoDE/EasyAI-PHP)[ Packagist](https://packagist.org/packages/hosonode/easyai-php)[ RSS](/packages/hosonode-easyai-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (14)Used By (0)

EasyAI-PHP
==========

[](#easyai-php)

About The Project
-----------------

[](#about-the-project)

EasyAI-PHP is an open-source initiative designed to significantly simplify the entry into artificial intelligence for PHP-developers (so basically Lang-Chain for PHP). Based on PHP 8.1+, this project integrates advanced AI models and utilities, allowing developers to incorporate complex AI functionalities with minimal coding.

Key Features
------------

[](#key-features)

- **Multiple AI Models**: Incorporates OpenAI's GPT-3.5, GPT-4, and Claude 3 (Opus, Sonnet &amp; Haiku), along with Gemini 1.0 &amp; 1.5 models.
- **AI Utilities**: Offers a variety of helpers such as vector databases from Pinecone and embeddings through OpenAI, streamlining the integration of advanced AI features into your projects.
- **Minimal Coding Requirement**: Designed to minimize the coding effort needed on your part, thanks to the numerous ready-to-use helpers.

Getting Started
---------------

[](#getting-started)

Install the project using Composer:

```
composer require hosonode/easyai-php

```

Usage
-----

[](#usage)

### 💬 Usage of `OpenAIChat`

[](#speech_balloon-usage-of-openaichat)

Documentation:

### ↔️ Usage of `EmbeddingGenerator\OpenAI`

[](#left_right_arrow-usage-of-embeddinggeneratoropenai)

An "embedding" is a vector representation of text that captures semantic meanings of the words or phrases. These vectors are generated by deep learning models and can be used in machine learning applications to compare texts, search for similar content, or feed into other machine learning models for tasks like classification or clustering. Each component of the vector represents a dimension of the text's meaning, allowing the model to understand and process text similarly to how humans do but in a numerical form.

Documentation:

### 📂 Usage of `PineconeVectorStore`

[](#open_file_folder-usage-of-pineconevectorstore)

The advantage of using Pinecone is that it offers a serverless package where you only pay for what you use. You don't need your own AWS, Google Cloud or Azure for this. This model is highly cost-effective as it eliminates overcapacity and unnecessary expenses.

Documentation:

### Usage of `Crawler & Zyte API`

[](#usage-of-crawler--zyte-api)

Documentation:

### Usage of `Tools`

[](#usage-of-tools)

Documentation:

🗺️ Roadmap
==========

[](#world_map-roadmap)

✔️ Completed Features:
----------------------

[](#heavy_check_mark-completed-features)

- **OpenAI GPT-3.5 and GPT-4 Helpers**:
- **Embedding Helpers**: With OpenAI
- **Pinecone Vector Databases Add**: Add Vector/s Delete them
- **Pinecone Vector Databases Search**: Semantic Search
- **Zyte API**: With Guzzle as beginner
- **DOM Crawling**: With Symfony DOM Crawler
- **Tools**: AsyncHttpRequests, HTML Cleaner, HTMl Extractor, Site Type Classifier, etc.
- **DataForSEO**: Integration of DatForSEO API Integration

🚧 In Progress:
--------------

[](#construction-in-progress)

- P1: **AI Translator**: With Gemini 1.0 &amp; 1.5
- P1: **PageSpeed Insights API**:
- P1: **Gemini 1.0 &amp; 1.5**: Text Generation
- P2: **Gemini 1.0 &amp; 1.5**: Vision Support
- P3: **Gemini 1.0 &amp; 1.5**: Full Multimodal support
- P2: **BunnyCDN**: Upload big files or text to CDN

🚀 Planned Features:
-------------------

[](#rocket-planned-features)

- P2: **Claude 3 (Opus, Sonnet &amp; Haiku) Helpers**:
- P2: **Embedding: AI Text Chunking**: With GPT3.5 or Claude 3 Haiku or Gimini 1.0
- P2: **Embedding: Text Chunking**: By separators and limits
- P1: **Claude 3 (Opus, Sonnet &amp; Heiku)**: Text Generation
- P2: **Claude 3 (Opus, Sonnet &amp; Heiku)**: Vision Support
- P2: **DALL·E 3**: Image Creationg
- P3: **AI Translator**: With DeepL
- P3: **AI Translator**: With GPT 3.5 &amp; GPT 4
- P3: **AI Translator**: With Claude 3 (Opus, Sonnet &amp; Heiku)
- P3: **Tokenizer for PHP**: With
- P3: **OpenAI Whisper**: Audio Support
- P3: **Example: Pinecone semantic search tool**: UI
- P3: **Example: AI Colosseum**: Test differnt AIs with same input

FAQ
===

[](#faq)

### Q1: Why using EasyAi-PHP and not OpenAI PHP SDK

[](#q1-why-using-easyai-php-and-not-openai-php-sdk)

**A1:** If you are an experienced developer and want to use many features of OpenAI, the OpenAI PHP SDK might be right for you. However, if you want to make simple requests to the OpenAI interface with very few lines of code, our repo is the right one for you, as we have programmed many helpers that you can use many AI and PHP helpers to improve your project. Many studies and research papers also show that you should use many different AI agents to do different tasks, each AI has its strengths, weaknesses, functions, etc.. Therefore, it would be very difficult to familiarize yourself with all AIs, which is why we offer a kind of AI framework for you here.

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

[](#contributing)

We highly encourage community contributions. Whether you're a developer using our helpers or someone looking to enhance the functionalities of EasyAI-PHP, your contributions are welcome. This collaborative effort benefits everyone involved.

Open-Source Projects Used
-------------------------

[](#open-source-projects-used)

This project utilizes several community-driven packages to power its features:

- [openai-php/client](https://github.com/openai-php/client): For interfacing with OpenAI APIs.
- [pinecone-php](https://github.com/probots-io/pinecone-php): For integrating vector databases.
- [BunnyWay/BunnyCDN.PHP.Storage](https://github.com/BunnyWay/BunnyCDN.PHP.Storage): For cheap HDD &amp; SSD storange + CDN
- [deepl-php](https://github.com/DeepLcom/deepl-php): For translation services.
- [LLPhant](https://github.com/theodo-group/LLPhant): An inspiration for our repo
- [Gemini PHP](https://github.com/google-gemini-php/client): Gemini for PHP

Support
-------

[](#support)

For AI-related inquiries, contact our HosonoAI support at . For service-related questions, reach out to . We offer support in German, English, Japanese, Russian, and Italian.

Sponsored by
------------

[](#sponsored-by)

- **HosonoDE**: An e-commerce agency serving mainly D-A-CH (Germany / Austria / Switzerland) customers.
- **HosonoAI**: A platform that enables easy, code-free creation of texts for e-commerce and marketing.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance45

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~32 days

Recently: every ~86 days

Total

13

Last Release

377d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ef7b9c21e146eabef469c97e5c1c9b048255e7bdf33758af4960ebc62038083?d=identicon)[hosonode](/maintainers/hosonode)

---

Top Contributors

[![RHosono](https://avatars.githubusercontent.com/u/37114313?v=4)](https://github.com/RHosono "RHosono (62 commits)")

---

Tags

aiclaudeclaude-3gpt4llmopenairagphpapilanguageaiopenaillmembeddinggpt-4vectorstoregpt-3.5

### Embed Badge

![Health badge](/badges/hosonode-easyai-php/health.svg)

```
[![Health](https://phpackages.com/badges/hosonode-easyai-php/health.svg)](https://phpackages.com/packages/hosonode-easyai-php)
```

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[openai-php/symfony

Symfony Bundle for OpenAI

215715.5k3](/packages/openai-php-symfony)

PHPackages © 2026

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