Download the PHP package mygrainexchange/mgx-php without Composer
On this page you can find all versions of the php package mygrainexchange/mgx-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mygrainexchange/mgx-php
More information about mygrainexchange/mgx-php
Files in mygrainexchange/mgx-php
Download mygrainexchange/mgx-php
More information about mygrainexchange/mgx-php
Files in mygrainexchange/mgx-php
Vendor mygrainexchange
Package mgx-php
Short Description Official PHP client for the MGX Enterprise API. Browse anonymized inventory, place bids, read your team's trades and bids, manage cash bids, subscribe to webhooks, and read market prices. Authenticate with OAuth2 (Login with MGX). Seller identity is never exposed until a trade is paid on both sides.
License MIT
Homepage https://developers.mygrainexchange.com
Package mgx-php
Short Description Official PHP client for the MGX Enterprise API. Browse anonymized inventory, place bids, read your team's trades and bids, manage cash bids, subscribe to webhooks, and read market prices. Authenticate with OAuth2 (Login with MGX). Seller identity is never exposed until a trade is paid on both sides.
License MIT
Homepage https://developers.mygrainexchange.com
Please rate this library. Is it a good library?
Informations about the package mgx-php
mygrainexchange/mgx-php
Official PHP client for the MGX Enterprise API.
Requires PHP 8.1+.
Quickstart
You can also construct with an options array:
Authentication
- Client credentials (read-only data) — pass
clientId+clientSecret+scopes; the SDK acquires, caches, and refreshes the token for you. - Login with MGX (user-context: bids, trades, teams, cash bids, webhooks) — complete the authorization-code + PKCE flow, then pass the resulting
accessToken(and optionallyrefreshToken) toMgxClient.
Features
- Resource namespaces —
inventory(),market(),bids(),trades(),teams(),cashBids(),webhooks(). - Auto-pagination — every
list()returns aPaginatoryou canforeachover; it followsnextuntil the result set is exhausted (->toArray()collects eagerly). - Idempotency —
inventory()->placeBid()andcashBids()->create()send anIdempotency-Keyautomatically (override with the$idempotencyKeyargument). - Typed errors — non-2xx responses throw
MgxApiErrorwithstatus(),code(),getMessage(), andfieldErrors().
Generated code
The lib/ client is generated from the OpenAPI spec; the ergonomic layer lives in
overlay/ (namespace MyGrainExchange\Mgx\Overlay). Do not hand-edit lib/ —
change the API spec and regenerate. See the
mgx-sdks repo.
License
MIT
All versions of mgx-php with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0
The package mygrainexchange/mgx-php contains the following files
Loading the files please wait ...