sdn/test-simple-car-repository 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sdn/test-simple-car-repository

最新稳定版本:v0.2.0

Composer 安装命令:

composer require sdn/test-simple-car-repository

包简介

Package simple in-memory repository of a car for cross-platform grafts tests on graftcode

README 文档

README

Simple car in-memory repository.

Install

composer require sdn/test-simple-car-repository

Usage

use GrftTestSimpleCarRepository\InMemorySimpleCarRepository;
use GrftTestSimpleCar\SimpleCar;

$repository = new InMemorySimpleCarRepository();

// Get all cars (pre-seeded with 5 sample cars)
$cars = $repository->getAll();

// Add a new car
$car = new SimpleCar('BMW', 'M3', 2023);
$repository->add($car);

// Get by id
$found = $repository->get($car->getId());

// Update
$repository->update($car);

// Delete
$repository->delete($car->getId());

License

MIT

统计信息

  • 总下载量: 32
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固