autoapi/client
Composer 安装命令:
composer require autoapi/client
包简介
PHP wrapper for the auto-api.com car listings API (encar, mobile.de, autoscout24 and more)
关键字:
README 文档
README
PHP wrapper for auto-api.com — unified access to car listings from encar, mobile.de, autoscout24, che168 and other marketplaces.
Covers 8 sources across Korea, Europe, China and UAE. Fetch offers, filter by brand/year/price, track listing changes over time. Requires PHP 8.1+ and Guzzle.
Installation
composer require autoapi/client
Usage
use AutoApi\Client; $client = new Client('your-api-key', 'https://api1.auto-api.com');
Get filters
$filters = $client->getFilters('encar');
Search offers
$offers = $client->getOffers('mobilede', [ 'page' => 1, 'brand' => 'BMW', 'year_from' => 2020, ]); // Pagination $page = $offers['meta']['page']; $nextPage = $offers['meta']['next_page'];
Get single offer
$offer = $client->getOffer('encar', '40427050');
Track changes
$changeId = $client->getChangeId('encar', '2025-01-15'); $changes = $client->getChanges('encar', $changeId); // Next batch $nextChangeId = $changes['meta']['next_change_id']; $moreChanges = $client->getChanges('encar', $nextChangeId);
Get offer by URL
$info = $client->getOfferByUrl('https://encar.com/dc/dc_cardetailview.do?carid=40427050');
Error handling
use AutoApi\Exception\AuthException; use AutoApi\Exception\ApiException; try { $offers = $client->getOffers('encar', ['page' => 1]); } catch (AuthException $e) { // 401/403 — invalid API key } catch (ApiException $e) { echo $e->getStatusCode(); echo $e->getMessage(); }
Supported sources
| Source | Platform | Region |
|---|---|---|
encar |
encar.com | South Korea |
mobilede |
mobile.de | Germany |
autoscout24 |
autoscout24.com | Europe |
che168 |
che168.com | China |
dongchedi |
dongchedi.com | China |
guazi |
guazi.com | China |
dubicars |
dubicars.com | UAE |
dubizzle |
dubizzle.com | UAE |
Other languages
| Language | Package |
|---|---|
| TypeScript | @autoapicom/client |
| Python | autoapicom-client |
| Go | auto-api-go |
| C# | AutoApi.Client |
| Java | auto-api-client |
| Ruby | auto-api-client |
| Rust | auto-api-client |
Documentation
autoapi/client 适用场景与选型建议
autoapi/client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「scraper」 「API-Client」 「autoscout24」 「php-api-client」 「auto-api」 「car-listings」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 autoapi/client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 autoapi/client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 autoapi/client 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A lightweight, dependency free PHP class that acts as wrapper for Crawlbase API
Skolkovo API Client
A tool for scraping URL resources (oEmbed, OpenGraph, Twitter cards, JSON-LD)
Scrapes app data from Google Play store.
A client library for the OpenPLZ API project
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 46
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-11