定制 dev_mamun/shop-pre-order 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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:

  1. Install dependencies:
    composer install
  2. 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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-28