PHPackages                             fond-of-oryx/stock-api - 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. fond-of-oryx/stock-api

ActiveLibrary[API Development](/categories/api)

fond-of-oryx/stock-api
======================

The StockApi module provides a REST API for simple stock operations

1.0.0.beta.0(3y ago)00MITPHPPHP &gt;=8.0

Since Feb 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fond-of-oryx/stock-api)[ Packagist](https://packagist.org/packages/fond-of-oryx/stock-api)[ RSS](/packages/fond-of-oryx-stock-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Stock API Module
================

[](#stock-api-module)

[![license](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/fond-of-oryx/stock-api)

The StockApi module provides a REST API for simple stock operations.

Package is ported and splitted from `fond-of-spryker/stock-api`

For creating and updating product stocks, please use `fond-of-oryx/stock-product-api`

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

[](#installation)

```
composer require fond-of-oryx/stock-api

```

API
---

[](#api)

### Get stock data by id

[](#get-stock-data-by-id)

##### GET /stocks/{id\_stock}

[](#get-stocksid_stock)

##### Example

[](#example)

```
curl -X GET "http://zed.yourdomain.com/api/rest/stocks/{id_stock}" \
     -H 'Content-Type: application/json'
```

### find stock data

[](#find-stock-data)

##### GET /stocks?filter={"condition":"AND","rules":\[{"id":"name","field":"name","type":"string","input":"text","operator":"equal","value":"EU"},{"id":"is\_active","field":"is\_active","type":"bool","input":"bool","operator":"equal","value":true}\]}

[](#get-stocksfilterconditionandrulesidnamefieldnametypestringinputtextoperatorequalvalueeuidis_activefieldis_activetypeboolinputbooloperatorequalvaluetrue)

##### Example

[](#example-1)

```
curl -X GET "http://zed.yourdomain.com/api/rest/stocks?filter={"condition":"AND","rules":[{"id":"name","field":"name","type":"string","input":"text","operator":"equal","value":"EU"},{"id":"is_active","field":"is_active","type":"bool","input":"bool","operator":"equal","value":true}]}" \
     -H 'Content-Type: application/json'
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

1190d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f5bd8b1a3358200680cbaf5d0dce827afb0569cc997877854354cc70bcf5a61?d=identicon)[julianzimmermann](/maintainers/julianzimmermann)

---

Top Contributors

[![daniel-rose](https://avatars.githubusercontent.com/u/489806?v=4)](https://github.com/daniel-rose "daniel-rose (2 commits)")[![julianhyatt](https://avatars.githubusercontent.com/u/54834203?v=4)](https://github.com/julianhyatt "julianhyatt (2 commits)")[![SpiderDan98](https://avatars.githubusercontent.com/u/40319023?v=4)](https://github.com/SpiderDan98 "SpiderDan98 (2 commits)")

### Embed Badge

![Health badge](/badges/fond-of-oryx-stock-api/health.svg)

```
[![Health](https://phpackages.com/badges/fond-of-oryx-stock-api/health.svg)](https://phpackages.com/packages/fond-of-oryx-stock-api)
```

PHPackages © 2026

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