Download the PHP package usman/make-services without Composer
On this page you can find all versions of the php package usman/make-services. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download usman/make-services
More information about usman/make-services
Files in usman/make-services
Package make-services
Short Description Comprehensive Laravel package for generating services, repositories, interfaces, actions, DTOs and more with artisan commands
License MIT
Homepage https://github.com/UsmanMalik748/makeservices
Informations about the package make-services
Laravel Developer Toolkit - Make Services & More
A comprehensive Laravel package that provides artisan commands to quickly generate services, repositories, interfaces, actions, DTOs, traits, enums and more in your Laravel application.
✨ Features
- ✅ Service Classes - Generate service classes with optional CRUD methods
- ✅ Repository Pattern - Create repositories with model integration
- ✅ Interface Generation - Generate interfaces for dependency injection
- ✅ Action Classes - Single-purpose action classes (invokable or standard)
- ✅ Data Transfer Objects - DTOs with properties and array conversion
- ✅ Traits - Reusable trait classes
- ✅ Enums - Modern PHP 8.1+ enums with helper methods
- ✅ Service Stack - Generate complete stacks (Service + Repository + Interface + DTO)
- ✅ Nested Folders - Full support for nested directory structures
- ✅ Customizable - Configurable directories, namespaces, and templates
- ✅ Laravel 9, 10, 11 - Compatible with modern Laravel versions
- ✅ Professional UX - Emoji-based success/error messages with file paths
🚀 Installation
Install the package via composer:
Laravel Auto-Discovery
This package supports Laravel's auto-discovery feature, so the service provider will be automatically registered.
Publish Configuration (Optional)
This will publish:
config/make-services.php- Configuration fileresources/stubs/make-services/- Customizable stub files
📚 Available Commands
🔧 Services
🏪 Repositories
🔌 Interfaces
⚡ Actions
📦 Data Transfer Objects (DTOs)
🧩 Traits
📋 Enums
🎯 Complete Service Stack
Generate everything at once:
📁 Generated File Structure
After using the commands, your project structure will look like:
⚙️ Configuration
Customize the package by publishing the config file:
Available Configurations
📖 Usage Examples
Service with Model Integration
Generates:
DTO with Properties
Generates:
String Enum with Values
Generates:
🎯 Advanced Usage
Interface Binding
When using interfaces, don't forget to bind them in your AppServiceProvider:
The make:service-stack command will show you the exact binding code to use!
Custom Stub Files
After publishing stubs, you can customize templates in resources/stubs/make-services/:
service.stub- Service class templaterepository.stub- Repository class templateinterface.stub- Interface templateaction.stub- Action class templatedto.stub- DTO templatetrait.stub- Trait templateenum.stub- Enum template
🧪 Testing
📝 Changelog
Please see CHANGELOG for more information on what has changed recently.
🤝 Contributing
Please see CONTRIBUTING for details.
🔒 Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
🏆 Credits
- Usman Malik
- All Contributors
📄 License
The MIT License (MIT). Please see License File for more information.
💡 Why This Package?
Laravel doesn't include generators for service classes, repositories, interfaces, actions, DTOs, or modern enums. This package fills that gap with:
- Professional Templates - Well-structured, documented code
- Modern PHP - Supports latest PHP 8.x features
- Flexible Configuration - Customize everything to your needs
- Comprehensive Testing - Full test coverage
- Great Developer Experience - Clear messages, helpful output
Perfect for developers who follow clean architecture patterns, use the repository pattern, implement dependency injection with interfaces, or work with DTOs and modern PHP enums.
⭐ Support
If you find this package helpful, please consider giving it a ⭐ on GitHub!
For issues and feature requests, please use the GitHub issue tracker.
All versions of make-services with dependencies
illuminate/console Version ^9.0|^10.0|^11.0
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/filesystem Version ^9.0|^10.0|^11.0