Download the PHP package phpdevcommunity/michel-package-starter without Composer

On this page you can find all versions of the php package phpdevcommunity/michel-package-starter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package michel-package-starter

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. Ensure your project meets the minimum PHP version requirement of 7.4.

Package Interface

Start by creating a package class that implements the PackageInterface. This interface defines the methods you need to implement for your package.

Example Package

Here's an example of an PhpDevCommunity Michel package class (MyCustomPackage) that implements the PackageInterface. This package provides some default definitions, parameters, and commands. Note that this is just an example; you should create your own package based on your project's requirements.

Defining Your Package

Implementing getDefinitions

In the getDefinitions method, define the services your package provides. You can use the Dependency Injection Container to create and configure these services.

Implementing getParameters

The getParameters method allows you to define parameters specific to your package. These parameters can be customized in the project's configuration.

Implementing getListeners

If your package includes event listeners, define them in the getListeners method.

Implementing getRoutes

If your package provides routes, specify them in the getRoutes method.

Implementing getCommands

If your package includes console commands, list them in the getCommands method.

Activating Your Package

To activate your package in an PhpDevCommunity Michel project, you need to modify the packages.php file located in the /config directory. Add your package class to the list of packages along with the environment(s) where it should be active.

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.


All versions of michel-package-starter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phpdevcommunity/michel-package-starter contains the following files

Loading the files please wait ....