amirhome/laravel_subscription_managment
最新稳定版本:v1.6.0
Composer 安装命令:
composer require amirhome/laravel_subscription_managment
包简介
laravel_subscription_managment is a flexible plan and subscription management system for Laravel, offering essential tools to efficiently run your SAAS-like services. With a simple architecture and robust foundation, it provides a solid platform to effortlessly manage plans and subscriptions.
README 文档
README
Laravel Subscription Managment
laravel_subscription_managment is a flexible plan and subscription management system for Laravel, offering essential tools to efficiently run your SAAS-like services. With a simple architecture and robust foundation, it provides a solid platform to effortlessly manage plans and subscriptions.
Installation
composer require amirhome/laravel_subscription_managment
Installation in laravel 11 manually
"require": { "amirhome/laravel_subscription_managment": "@dev" }, "repositories": [ { "type": "path", "url": "packages/amirhome/laravel_subscription_managment" } ],
Publish files in your project:
# (cd ../../../ && composer update && composer dump-autoload -o && php artisan vendor:publish --provider="Amirhome\\LaravelSubscriptionManagment\\LaravelSubscriptionManagmentServiceProvider" --force && php artisan optimize:clear && php artisan migrate:fresh --seed) php artisan vendor:publish --provider="Amirhome\\LaravelSubscriptionManagment\\LaravelSubscriptionManagmentServiceProvider" --force composer update composer dump-autoload php artisan optimize:clear php artisan migrate:fresh php artisan route:list php artisan serve
Testing to browser http://127.0.0.1:8000/subscriptions
License
This package is open-source software licensed under the MIT License.
Help to publish the package
git add . git commit -m "changes" init_number=1000; build_number=$(($(git rev-list HEAD --count) + init_number)); major=$((build_number / 1000)); minor=$(( (build_number / 10) % 100 )); patch=$((build_number % 10)); version="$major.$minor.$patch"; echo "git tag -a v$version -m \"version $version\""; echo "git push origin master --tags" git tag -a v0.1.0 -m "version 0.1.0" git push origin master --tags
Unpublish (Remove Published Files)
If you need to remove all published files from your Laravel project:
# Remove config file rm -f config/laravel_subscription_managment.php rm -rf resources/views/vendor/laravel_subscription_managment rm -f app/Http/Controllers/Admin/SubscriptionGroupsController.php rm -f app/Http/Controllers/Admin/SubscriptionFeaturesController.php rm -f app/Http/Controllers/Admin/SubscriptionProductsController.php rm -f app/Http/Controllers/Admin/SubscriptionsController.php # Note: Migrations should be handled carefully # If you haven't run migrations yet, you can remove them: # Find and remove migration files starting with dates and containing subscription-related names # Example: rm -f database/migrations/*_create_subscription_*.php # Clear cache php artisan optimize:clear
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-06