Download the PHP package rayiumir/laravel-package without Composer
On this page you can find all versions of the php package rayiumir/laravel-package. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rayiumir/laravel-package
More information about rayiumir/laravel-package
Files in rayiumir/laravel-package
Package laravel-package
Short Description Easy creation with Laravel package.
License MIT
Informations about the package laravel-package
Laravel Package
A Laravel package generator that streamlines the process of creating standardized package structures. Quickly bootstrap your packages with a complete, well-organized structure and focus on building functionality rather than configuration.
Features
- Generates a complete Laravel package structure with a single command
- Creates standard Laravel package directories (config, migrations, views, etc.)
- Sets up composer.json with proper autoloading and dependencies
- Creates a Service Provider with common Laravel integrations pre-configured
- Includes testing setup with PHPUnit
- Generates license, readme, and other essential files
Installation
You can install the package via composer:
After Publish Config Files:
The service provider will be automatically registered for Laravel 5.5+. For older versions, add the service provider manually:
Usage
Basic Usage
Generate a new package with the following command:
This will create a new package in the packages/my-package
directory with the default vendor name.
Customizing the Vendor Name
You can specify a custom vendor name:
Including Tests
To include PHPUnit test setup:
Generated Structure
The generated package will have the following structure:
Next Steps After Generation
After generating your package, you might want to:
- Edit the
composer.json
file to update package details and requirements - Modify the Service Provider to add any specific functionality
- Update the README.md with your package documentation
- Add your migrations, routes, and views
- Create your package's main classes in the
src
directory - If you used the
--with-tests
option, start writing tests for your package
Local Development
When developing the package locally within a Laravel application, you can add the repository to your application's composer.json
:
Testing Your Package
If you generated your package with the --with-tests
option, you can run tests with:
Publishing Your Package
Once your package is ready, you can publish it to Packagist:
- Push your package to GitHub or another Git repository
- Register your package on Packagist
- Set up webhooks for automatic updates when you push changes
Screenshots
Command Install | Folders and Files |
---|---|
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
If you have any questions or need help, please:
- Open an issue on GitHub