PHPackages                             adhocore/plastic - 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. [Search &amp; Filtering](/categories/search)
4. /
5. adhocore/plastic

ActiveLibrary[Search &amp; Filtering](/categories/search)

adhocore/plastic
================

0.1.0(7y ago)8313MITPHPPHP &gt;=7.0.0CI failing

Since Feb 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/adhocore/plastic)[ Packagist](https://packagist.org/packages/adhocore/plastic)[ RSS](/packages/adhocore-plastic/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

adhocore/plastic
----------------

[](#adhocoreplastic)

PHP elasticsearch wrapper designed to be minimal, intuitive and dependency free.

[![Latest Version](https://camo.githubusercontent.com/f4f979cefc6f0ee952a6cd8feacc4dabef52270ec7ffeaccec7d79eca0c38dbe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6164686f636f72652f706c61737469632e7376673f7374796c653d666c61742d737175617265)](https://github.com/adhocore/plastic/releases)[![Travis Build](https://camo.githubusercontent.com/4b1ab7e422b5e12450a24da2f1adc226e0cb1d0cdfe6c991875775ce2dffa63a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f6164686f636f72652f706c61737469632e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.com/adhocore/plastic?branch=master)[![Scrutinizer CI](https://camo.githubusercontent.com/f2f3e403174f5399b4b7a3880908d14de6eb91daf82f4cfb30007c52d461b63b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6164686f636f72652f706c61737469632e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adhocore/plastic/?branch=master)[![Codecov branch](https://camo.githubusercontent.com/99590ba1d473a5ed9d0b7f0c540f9859898423b3d2e553127ee5c61d769b5a14/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6164686f636f72652f706c61737469632f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/adhocore/plastic)[![StyleCI](https://camo.githubusercontent.com/084ce72e930bacd564d5808320ae00cb03279bcae79f45e93152b7b4b6273895/68747470733a2f2f7374796c6563692e696f2f7265706f732f3136393837353638302f736869656c64)](https://styleci.io/repos/169875680)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](./LICENSE)

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

[](#installation)

```
composer require adhocore/plastic
```

Usage
-----

[](#usage)

```
use Ahc\Plastic\Client;

# Instantiate:
$client = new Ahc\Plastic\Client(null, true);

# Usage convention:
$client->{$httpMethod}->$segment1->$segment2->$method($data, $query);

# For numeric segment or method, prepend with `_`!
# (this is because PHP doesnt allow numeric method or props without some hack)

# Example:
$client->post->articles->article->_1(['json_key' => 'value'], ['query' => 'param']);
```

See [./test.php](./test.php) for more.

API
---

[](#api)

There is none. It works analagous to the RESTful API of [elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs.html).

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

[](#contributing)

Please check [the guide](./CONTRIBUTING.md)

LICENSE
-------

[](#license)

> © [MIT](./LICENSE) | 2019, Jitendra Adhikari

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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

Unknown

Total

1

Last Release

2647d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2908547?v=4)[Jitendra Adhikari](/maintainers/adhocore)[@adhocore](https://github.com/adhocore)

---

Top Contributors

[![adhocore](https://avatars.githubusercontent.com/u/2908547?v=4)](https://github.com/adhocore "adhocore (16 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

adhocoreelastic-restelasticsearchphp-elasticsearch-wrapperphp7plasticphpelasticsearchelasticPHP7plastic

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/adhocore-plastic/health.svg)

```
[![Health](https://phpackages.com/badges/adhocore-plastic/health.svg)](https://phpackages.com/packages/adhocore-plastic)
```

###  Alternatives

[elasticsearch/elasticsearch

PHP Client for Elasticsearch

5.3k178.3M943](/packages/elasticsearch-elasticsearch)[babenkoivan/elastic-scout-driver

Elasticsearch driver for Laravel Scout

2773.8M5](/packages/babenkoivan-elastic-scout-driver)[babenkoivan/elastic-scout-driver-plus

Extension for Elastic Scout Driver

2862.8M1](/packages/babenkoivan-elastic-scout-driver-plus)[babenkoivan/elastic-migrations

Elasticsearch migrations for Laravel

1962.5M6](/packages/babenkoivan-elastic-migrations)[babenkoivan/elastic-client

The official PHP Elasticsearch client integrated with Laravel

544.0M6](/packages/babenkoivan-elastic-client)[babenkoivan/elastic-adapter

Adapter for official PHP Elasticsearch client

404.0M9](/packages/babenkoivan-elastic-adapter)

PHPackages © 2026

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