susheelhbti/rentwheel
Composer 安装命令:
composer require susheelhbti/rentwheel
包简介
Modern car rental platform with Stripe integration, multi-user roles, and automated workflows
README 文档
README
A production-grade car rental platform built with Laravel 11, Stripe Connect, multi-role auth, and automated workflows.
Built by Susheel Kumar · Available for freelance work
Features
9 Modules · 54 Features
| Module | Highlights |
|---|---|
| Database & Models | 12 tables, soft deletes, full-text search index, audit log |
| Car Search | Geo-radius, full-text, date availability, 8 filters, 5 sort modes |
| Booking Management | Overlap detection, extend, waitlist with auto-promote |
| Payments & Payouts | Stripe PaymentIntents, deposits, refunds, Stripe Connect host payouts |
| Notifications | Email + SMS (Twilio) + in-app, queued, scheduled 24h/2h reminders |
| Host Management | Photo upload/reorder, availability calendar, peak pricing, earnings dashboard |
| Reviews & Ratings | Two-way reviews, rating aggregation, admin moderation |
| Auth & Security | Sanctum tokens, license verification, role middleware, rate limiting |
| Admin & Analytics | Dashboard (cached), revenue reports, dispute management, user management |
Tech Stack
- Backend: Laravel 11, PHP 8.2
- Auth: Laravel Sanctum (API tokens)
- Payments: Stripe (PaymentIntents + Connect)
- Queue: Redis + Laravel Queues
- SMS: Twilio
- Email: Laravel Mail (SMTP/Mailgun/SES)
- Database: MySQL 8 with full-text indexes
- Cache: Redis
Quick Start
# Clone git clone https://github.com/susheelhbti/rentwheel.git cd rentwheel # Install dependencies composer install # Environment setup cp .env.example .env php artisan key:generate # Configure .env: # DB_*, STRIPE_KEY, STRIPE_SECRET, STRIPE_WEBHOOK_SECRET # TWILIO_SID, TWILIO_TOKEN, TWILIO_FROM # MAIL_*, QUEUE_CONNECTION=redis # Run migrations and seed demo data php artisan migrate:fresh --seed # Link storage php artisan storage:link # Start queue worker php artisan queue:work redis --tries=3 # Start scheduler (local dev) php artisan schedule:work
Demo accounts after seeding:
| Role | Password | |
|---|---|---|
| Admin | admin@carrental.test | password |
| Host | james@example.com | password |
| Renter | alex@example.com | password |
API Overview
POST /api/auth/register
POST /api/auth/login
GET /api/cars?q=&location=&start_date=&end_date=&category=&sort=
GET /api/cars/{id}/availability
GET /api/cars/{id}/price-estimate
POST /api/bookings
POST /api/bookings/{id}/payment-intent
POST /api/bookings/{id}/cancel
POST /api/bookings/{id}/extend
POST /api/host/listings
GET /api/host/earnings
GET /api/admin/dashboard
GET /api/admin/revenue
Full route list: routes/api.php
Security
- Input validation on every endpoint (whitelisted enums, type-cast integers, sanitised strings)
- Rate limiting: auth 10/min · public search 60/min · admin 30/min
- Stripe webhook signature verification + idempotency guard
- Role-based middleware (admin / host / license verified)
- Policy-based resource authorization (BookingPolicy, CarPolicy)
- Audit log on all model changes
Project Structure
app/
├── Http/Controllers/ # AuthController, BookingController, HostController, AdminController …
├── Http/Middleware/ # EnsureAdmin, EnsureHost, EnsureLicenseVerified, EnsureTwoFactor
├── Models/ # User, Car, Booking, Payment, Payout, Review, Dispute …
├── Notifications/ # BookingConfirmed, BookingCancelled, PaymentReceived …
├── Policies/ # BookingPolicy, CarPolicy
├── Services/ # CarSearchService, BookingService, PaymentService, HostService …
├── Observers/ # AuditObserver
└── Console/Commands/ # SendBookingReminders
database/
├── migrations/ # 3 migration files covering all 12 tables
└── seeders/ # DatabaseSeeder with demo data
resources/views/emails/ # 6 styled HTML email templates
routes/api.php # All 40+ API routes
config/platform.php # Centralised platform config (fees, TTLs, currency)
License
MIT © 2024 Susheel Kumar
Author
Susheel Kumar — Laravel & PHP Developer
📧 susheelhbti@gmail.com
🐙 github.com/susheelhbti
Available for freelance projects. See freelancer profile for services offered.
susheelhbti/rentwheel 适用场景与选型建议
susheelhbti/rentwheel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「stripe」 「laravel」 「booking」 「car-rental」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 susheelhbti/rentwheel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 susheelhbti/rentwheel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 susheelhbti/rentwheel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Library to handel intervals
Flexible payment integration for Laravel, lunarphp, supporting multiple payment providers.
Rich payment solutions for Laravel framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
Adds some booking functionality to your Symfony project
SOAP Web Service client library for interacting with the Amadeus GDS through its SOAP interface
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 47
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-13