sasuke22233 / lolzteam-api-php
PHP API client for Lolzteam Forum and Market (generated from OpenAPI)
1.0.0
2026-06-04 23:09 UTC
Requires
- php: >=8.1
- ext-json: *
- caseyamcl/guzzle_retry_middleware: ^2.8
- guzzlehttp/guzzle: ^7.5
README
PHP 8.1+ client for Lolzteam Forum and Market, generated from OpenAPI.
| API | Schema |
|---|---|
| Forum | openapi/forum.json |
| Market | openapi/market.json |
Upstream: AS7RIDENIED/LOLZTEAM
Features
- Methods and models generated via
bin/generate.php(OpenAPI Generator 7.2) - Optional HTTP proxy
- Automatic retries on 429, 502, 503
- MIT license
Install
composer require sasuke22233/lolzteam-api-php
Usage
Market
<?php use Lolzteam\Core\ClientOptions; use Lolzteam\Market\MarketClient; $client = new MarketClient(new ClientOptions( accessToken: getenv('LZT_TOKEN'), proxy: null, // e.g. 'http://127.0.0.1:8080' )); $accounts = $client->categorySearch()->categoryAll(page: 1);
Forum
<?php use Lolzteam\Core\ClientOptions; use Lolzteam\Forum\ForumClient; $client = new ForumClient(new ClientOptions( accessToken: getenv('LZT_TOKEN'), )); $categories = $client->categories()->categoriesList();
Regenerate from OpenAPI
Place updated schemas in openapi/forum.json and openapi/market.json, then:
composer run generate
Requires Java 11+ and PHP 8.1+.
License
MIT — see LICENSE.