kamellion-dev/laravel-checkpoint
Composer 安装命令:
composer require kamellion-dev/laravel-checkpoint
包简介
Simple Laravel development checkpoints for databases and local filesystem disks.
README 文档
README
Simple Laravel development checkpoints for your database and local storage disks.
Quick start
Install the package:
composer require kamellion-dev/laravel-checkpoint
Laravel will auto-discover the service provider, so the commands become available immediately:
php artisan checkpoint:save php artisan checkpoint:load
Saved checkpoints are stored in the project's .dev-checkpoint folder.
Load a specific checkpoint folder by name:
php artisan checkpoint:load --name=your_checkpoint_folder
Load a checkpoint and re-run migrations when needed:
php artisan checkpoint:load --migrate
Clear all saved checkpoints:
php artisan checkpoint:clear
Package structure
This package keeps its classes inside src/ and registers them through a service provider instead of copying files into the host application's app/ directory.
src/commands/CheckpointSave.phpsrc/commands/CheckpointLoad.phpsrc/commands/CheckpointClear.phpsrc/services/DatabaseCheckpointService.phpsrc/LaravelCheckpointServiceProvider.php
To the consuming Laravel app, the commands behave like native Artisan commands without physically adding files under app/Console/Commands or app/Services.
Packagist publish checklist
- Push this repository to GitHub at
https://github.com/Kamellion-Dev/laravel-checkpoint. - Create a Packagist account and submit the repository URL.
- Make sure the default branch contains this
composer.jsonand the package source. - Tag a release, for example
v1.0.0, then push the tag:
git tag v1.0.0 git push origin main --tags
- On Packagist, click
Updateor enable the GitHub hook so new tags are indexed automatically.
Notes
- Composer package names must be lowercase, so the package name is
kamellion-dev/laravel-checkpoint. - Auto-discovery is enabled through the
extra.laravel.providerssection incomposer.json. - No publish step is required because the commands and service are resolved directly from the package.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-14