sherifsheremetaj/cars
Composer 安装命令:
composer require sherifsheremetaj/cars
包简介
Cars information package
README 文档
README
A simple PHP package for managing car manufacturers' data in multiple formats (JSON, CSV, XML). Supports data retrieval, conversion, and validation with robust error handling.
📦 Installation
Install the package via Composer:
composer require sherifsheremetaj/cars
🚀 Usage
1️⃣ Retrieve Manufacturers
use SherifSheremetaj\Cars\Enums\DataTypes; use SherifSheremetaj\Cars\Manufactures; #JSON data $manufactures = new Manufactures(); $data = $manufactures->getManufactures(DataTypes::JSON); echo $data . PHP_EOL; #CSV data $manufactures = new Manufactures(); $data = $manufactures->getManufactures(DataTypes::CSV); echo $data . PHP_EOL; #XML data $manufactures = new Manufactures(); $data = $manufactures->getManufactures(DataTypes::XML); echo $data . PHP_EOL;
1️⃣ Retrieve CarTypes
use SherifSheremetaj\Cars\CarTypes; use SherifSheremetaj\Cars\Enums\DataTypes; #JSON data $carTypes = new CarTypes(); $data = $carTypes->getTypes(DataTypes::JSON); echo $data; #CSV data $carTypes = new CarTypes(); $data = $carTypes->getTypes(DataTypes::CSV); echo $data; #XML data $carTypes = new CarTypes(); $data = $carTypes->getTypes(DataTypes::XML); echo $data;
🛠 Configuration
By default, data is loaded from:
__DIR__ . '/data/....';
✅ Running Tests
To run the PHPUnit test suite, use:
composer install vendor/bin/phpunit
To run lint (Laravel pint), use
composer pint
🔍 Data Source
Logo images are crawled from Carlogos.org and processed for optimal usage.
📝 Contributing
Pull requests are welcome! To contribute:
- Fork the repository.
- Create a new feature branch (
git checkout -b feature-name). - Commit your changes (
git commit -m "Added feature X"). - Push to the branch (
git push origin feature-name). - Open a pull request.
📜 License
This package is licensed under the MIT License.
⭐ Support & Feedback
If you find this package helpful, please ⭐ star the repository! For suggestions or issues, open an issue.
Made with ❤️ by Sherif Sheremetaj
sherifsheremetaj/cars 适用场景与选型建议
sherifsheremetaj/cars 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 02 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sherifsheremetaj/cars 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sherifsheremetaj/cars 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-18