An open API service indexing awesome lists of open source software.

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.

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.