https://github.com/phpdevcommunity/michel-package-starter
The core interface required for creating and integrating packages into the Michel framework.
https://github.com/phpdevcommunity/michel-package-starter
Last synced: 3 months ago
JSON representation
The core interface required for creating and integrating packages into the Michel framework.
- Host: GitHub
- URL: https://github.com/phpdevcommunity/michel-package-starter
- Owner: phpdevcommunity
- License: mit
- Created: 2024-12-24T13:58:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-24T14:08:44.000Z (about 1 year ago)
- Last Synced: 2025-09-23T10:57:06.289Z (4 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Creating an PhpDevCommunity Michel Package
In Michel Framework, you can create packages, which are equivalent to bundles in Symfony. This allows you to organize and share reusable components across different projects. To create an PhpDevCommunity Michel package, you need to implement the `PackageInterface` and define your package's services, parameters, event listeners, routes, and commands.
You can install this library via [Composer](https://getcomposer.org/). Ensure your project meets the minimum PHP version requirement of 7.4.
```bash
composer require phpdevcommunity/michel-package-starter
```
## Package Interface
Start by creating a package class that implements the `PackageInterface`. This interface defines the methods you need to implement for your package.
```php
['dev', 'prod'],
];
```
In this example, the `MyCustomPackage` is activated for both the 'dev' and 'prod' environments. You can adjust the list of environments as needed.
By following these steps, you can create and activate your PhpDevCommunity Michel packages to extend the functionality of your projects.