PHPackages                             rcv/core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. rcv/core

ActiveLibrary[Framework](/categories/framework)

rcv/core
========

Enterprise-Grade Modular Architecture for Laravel Applications - A powerful Laravel package that revolutionizes application development with robust Service Repository Pattern, Dynamic Module Management, and 50+ Artisan commands for scalable, maintainable applications.

v1.2.0(3mo ago)14881↓50%3MITPHPPHP ^8.0

Since Jul 31Pushed 3mo agoCompare

[ Source](https://github.com/RCV-Technologies/laravel-module)[ Packagist](https://packagist.org/packages/rcv/core)[ Docs](https://const-ant-laravel-corex-docs.vercel.app/)[ GitHub Sponsors](https://github.com/sponsors/rcv-technologies)[ Fund](https://rcvtechnologies.com/donate)[ RSS](/packages/rcv-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (10)Versions (6)Used By (0)

🚀 Laravel Core Module
=====================

[](#-laravel-core-module)

 [![RCV Core Module](https://camo.githubusercontent.com/f002460910067d2348c52e7f00627a4eb733a308ae0d9136bccb7a0706900b09/68747470733a2f2f7777772e726376746563686e6f6c6f676965732e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032342f30322f5243562d4c4f474f2e77656270)](https://camo.githubusercontent.com/f002460910067d2348c52e7f00627a4eb733a308ae0d9136bccb7a0706900b09/68747470733a2f2f7777772e726376746563686e6f6c6f676965732e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032342f30322f5243562d4c4f474f2e77656270)

Laravel Core Module
===================

[](#laravel-core-module)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7877aaac958130596bce00c7c0d4b334af828fe398d4ba141eda66ed8913e5c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7263762f636f72652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374)](https://packagist.org/packages/rcv/core)[![Total Downloads](https://camo.githubusercontent.com/8ad91e6c43e7f6690f7a93a22ec97f0e0c876a15c3806c3150790abf1ba512a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7263762f636f72652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d646f776e6c6f6164)](https://packagist.org/packages/rcv/core)[![PHP Version](https://camo.githubusercontent.com/9b6cafa1d98e599e58bfb704a1d1de08e4219034c4bdbb2e981662e156492842/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7263762f636f72652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://packagist.org/packages/rcv/core)[![Laravel Version](https://camo.githubusercontent.com/75aa295b81ffd48d2880e2c3aa75f5bcada5d9bd78f052c65dc079e090f1c78c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d253545392d7265642e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c)](https://laravel.com)[![License](https://camo.githubusercontent.com/30c26a26aceed6a469323146021aeb5829f5a4b342c3ed34b6226d07ba44a28b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7263762f636f72652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/rcv/core)

[![Tests](https://camo.githubusercontent.com/e83a488767dc90f44b649402f212204de8edf205d948e7200380b76c7fe83a88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7263762d746563686e6f6c6f676965732f6c61726176656c2d636f72652f74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666f722d7468652d6261646765266c6f676f3d676974687562266c6162656c3d5465737473)](https://github.com/rcv-technologies/laravel-core/actions)[![Code Coverage](https://camo.githubusercontent.com/312de7bb4d17d68d5b88516c846e6aadcbf23d17c537271afd5c5a2f496f92a4/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f7263762d746563686e6f6c6f676965732f6c61726176656c2d636f72653f7374796c653d666f722d7468652d6261646765266c6f676f3d636f6465636f76)](https://codecov.io/gh/rcv-technologies/laravel-core)[![Quality Score](https://camo.githubusercontent.com/48d757285c5d6531f1a8d68ae911e9899202765191feef44850182ffc16b01ab/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f7263762d746563686e6f6c6f676965732f6c61726176656c2d636f72653f7374796c653d666f722d7468652d6261646765266c6f676f3d7363727574696e697a6572)](https://scrutinizer-ci.com/g/rcv-technologies/laravel-core)

**🏆 Enterprise-Grade Modular Architecture for Laravel Applications**

*Built by developers, for developers - powering scalable applications worldwide*

[📖 Documentation](https://const-ant-laravel-corex-docs.vercel.app/) • [🚀 Quick Start](#-quick-start) • [💬 Community](https://github.com/rcv-technologies/laravel-core/discussions) • [🐛 Report Bug](https://github.com/rcv-technologies/laravel-core/issues)

---

🌟 Why RCV Core Module?
----------------------

[](#-why-rcv-core-module)

RCV Core Module revolutionizes how you build Laravel applications by providing a **robust modular architecture** that scales with your business needs. Built with enterprise-level development in mind, it combines the power of **Service Repository Pattern** with **Dynamic Module Management**.

### 🎯 Perfect For

[](#-perfect-for)

- 🏢 **Enterprise Applications** - Large-scale applications with complex business logic
- 🔧 **Multi-tenant SaaS** - Applications serving multiple clients with different features
- 🌐 **Microservices Architecture** - Breaking monoliths into manageable modules
- 👥 **Team Development** - Multiple teams working on different features simultaneously
- 🚀 **Rapid Prototyping** - Quick module scaffolding for MVP development

---

🔥 Key Features
--------------

[](#-key-features)

🏗️ **Architecture**🛠️ **Development**🚀 **Performance**🔐 **Enterprise**Service Repository Pattern20+ Artisan CommandsDynamic Module LoadingPSR-4 CompliantInterface-Based DesignAuto-ScaffoldingLazy LoadingDependency InjectionEvent-Driven ArchitectureHot Module SwappingOptimized AutoloadingSecurity Best PracticesModular Routing SystemDeveloper-Friendly CLICaching StrategiesEnterprise Monitoring

---

📊 Architecture Overview
-----------------------

[](#-architecture-overview)

 ```
graph TB
    A[Laravel Application] --> B[Laravel Core Module]
    B --> C[Module Manager]
    B --> D[Service Repository]
    B --> E[Event System]

    C --> F[Module A]
    C --> G[Module B]
    C --> H[Module N...]

    F --> I[Controllers]
    F --> J[Services]
    F --> K[Repositories]
    F --> L[Models]

    D --> M[Repository Interface]
    D --> N[Service Layer]
    D --> O[Business Logic]

    E --> P[Module Events]
    E --> Q[Notifications]
    E --> R[Listeners]

    style A fill:#e1f5fe
    style B fill:#f3e5f5
    style C fill:#e8f5e8
    style D fill:#fff3e0
    style E fill:#fce4ec
```

      Loading ---

🛠️ Installation &amp; Setup
---------------------------

[](#️-installation--setup)

### Requirements

[](#requirements)

RequirementVersionStatus**PHP**≥ 8✅ Supported**Laravel**9.x - 12.x✅ Supported**Composer**Latest✅ Required**Extensions**json, mbstring, openssl✅ Standard

### 🚀 Quick Start

[](#-quick-start)

```
# 📦 Install via Composer
composer require rcv/core

# 🔧 Publish Migration
php artisan vendor:publish --tag=core-module-migrations

# 🔧 Migrate Migration
php artisan migrate

# 🎯 Create your first module
php artisan module:make UserManagement

# 🎯 Install your first module
php artisan module:marketplace install UserManagement
```

---

🏗️ Module Structure Deep Dive
-----------------------------

[](#️-module-structure-deep-dive)

Our modular architecture follows a **clean, organized structure** that promotes maintainability and scalability:

```
📁 modules/
└── 📁 UserManagement/
    ├── 📄 module.json                    # Module configuration
    ├── 📄 composer.json                  # Dependencies
    ├── 📁 src/
    │   ├── 📁 Config/
    │   │   └── 📄 config.php            # Module-specific config
    │   ├── 📁 Console/
    │   │   └── 📄 Commands/             # Artisan commands
    │   ├── 📁 Database/
    │   │   ├── 📁 Factories/            # Model factories
    │   │   ├── 📁 Migrations/           # Database migrations
    │   │   └── 📁 Seeders/              # Database seeders
    │   ├── 📁 Events/
    │   │   ├── 📄 UserCreated.php       # Domain events
    │   │   └── 📄 UserUpdated.php
    │   ├── 📁 Exceptions/
    │   │   ├── 📄 UserNotFoundException.php
    │   │   └── 📄 UserValidationException.php
    │   ├── 📁 Http/
    │   │   ├── 📁 Controllers/
    │   │   │   ├── 📄 UserController.php
    │   │   │   └── 📄 Api/ApiUserController.php
    │   │   ├── 📁 Middleware/
    │   │   │   └── 📄 UserAccessMiddleware.php
    │   │   ├── 📁 Requests/
    │   │   │   ├── 📄 CreateUserRequest.php
    │   │   │   └── 📄 UpdateUserRequest.php
    │   │   └── 📁 Resources/
    │   │       ├── 📄 UserResource.php
    │   │       └── 📄 UserCollection.php
    │   ├── 📁 Jobs/
    │   │   ├── 📄 SendWelcomeEmail.php   # Background jobs
    │   │   └── 📄 ProcessUserData.php
    │   ├── 📁 Listeners/
    │   │   ├── 📄 SendWelcomeNotification.php
    │   │   └── 📄 LogUserActivity.php
    │   ├── 📁 Models/
    │   │   ├── 📄 User.php               # Eloquent models
    │   │   └── 📄 UserProfile.php
    │   ├── 📁 Notifications/
    │   │   ├── 📄 UserWelcomeNotification.php
    │   │   └── 📄 UserPasswordReset.php
    │   ├── 📁 Observers/
    │   │   └── 📄 UserObserver.php       # Model observers
    │   ├── 📁 Policies/
    │   │   └── 📄 UserPolicy.php         # Authorization policies
    │   ├── 📁 Providers/
    │   │   ├── 📄 UserServiceProvider.php # Service provider
    │   │   ├── 📄 RouteServiceProvider.php
    │   │   └── 📄 EventServiceProvider.php
    │   ├── 📁 Repositories/
    │   ├── └── 📁 Interfaces/
    │   │   └── ├── 📄 UserRepositoryInterface.php
    │   │   └── └── 📄 UserServiceInterface.php
    │   │   ├── 📄 UserRepository.php     # Data access layer
    │   │   └── 📄 UserProfileRepository.php
    │   ├── 📁 Resources/
    │   │   ├── 📁 assets/
    │   │   │   ├── 📁 css/
    │   │   │   ├── 📁 js/
    │   │   │   └── 📁 images/
    │   │   ├── 📁 lang/
    │   │   │   ├── 📁 en/
    │   │   │   └── 📁 es/
    │   │   └── 📁 views/
    │   │       ├── 📁 layouts/
    │   │       ├── 📁 pages/
    │   │       └── 📁 components/
    │   ├── 📁 Routes/
    │   │   ├── 📄 web.php                # Web routes
    │   │   ├── 📄 api.php                # API routes
    │   │   └── 📄 console.php            # Console routes
    │   ├── 📁 Services/
    │   │   ├── 📄 UserService.php        # Business logic layer
    │   │   └── 📄 UserNotificationService.php
    │   ├── 📁 Tests/
    │   │   ├── 📁 Feature/
    │   │   ├── 📁 Unit/
    │   │   └── 📄 TestCase.php
    │   └── 📁 Traits/
    │       ├── 📄 HasUserPermissions.php # Reusable traits
    │       └── 📄 UserActivityTrait.php
    └── 📁 docs/
        ├── 📄 README.md                  # Module documentation
        └── 📄 CHANGELOG.md               # Version history

```

---

🎯 Service Repository Pattern Implementation
-------------------------------------------

[](#-service-repository-pattern-implementation)

### 🔧 Repository Layer

[](#-repository-layer)

```
