dev_mamun/shop-pre-order
最新稳定版本:v1.1.0
Composer 安装命令:
composer require dev_mamun/shop-pre-order
包简介
A Laravel package designed to streamline the pre-order process for online shops, enabling easy management of pre-orders and enhancing customer experience.
README 文档
README
Overview
A Laravel package designed to streamline the pre-order process for online shops, enabling easy management of pre-orders and enhancing customer experience.
Requirements
- Laravel: 11
- PHP: 8.2.0 or higher
Features
- Pre-Order Management: Create, update, delete, and view pre-orders.
- Role-Based Access Control: Admins and managers have specific permissions.
- Rate Limiting: Protects endpoints from excessive requests.
- reCAPTCHA Support: Ensures security for public routes.
- Event Triggers: Dispatches events on pre-order creation for email notifications.
Installation
Install via Composer:
composer require dev_mamun/shop-pre-order
Usage
Routes
- Public Routes:
GET /api/products- View available products.POST /api/pre-orders- Submit pre-orders with rate limiting and reCAPTCHA protection.
- Admin Routes:
GET /api/pre-orders/{id}- View details of a specific pre-order.PUT /api/pre-orders/{id}- Update an existing pre-order.DELETE /api/pre-orders/{id}- Delete a specific pre-order.- These routes are protected by authentication and admin role middleware.
- Manager Routes:
GET /api/pre-orders- View a list of pre-orders.- Limited permissions compared to admins.
Testing
To run tests:
- Install dependencies:
composer install
- Execute tests:
./vendor/bin/phpunit
Support
For issues or contributions, visit the repository and submit a pull request or issue.
Author: Md. Al Mamun License: MIT
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-28