Download the PHP package phpdevcommunity/michel-core without Composer

On this page you can find all versions of the php package phpdevcommunity/michel-core. 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-core

Michel Framework Core

The Michel Framework Core is the core library of the Michel Framework, a lightweight and versatile PHP framework designed for simplifying web development tasks.

Installation

You can install the Michel Framework Core via Composer:

Usage

To use the Michel Framework Core, you can follow these steps:

  1. Require the Composer Autoloader: Include Composer's autoloader in your project's entry point (e.g., index.php).

  2. Create a .env File

Create a .env file in the directory defined by getProjectDir in your Kernel class. This file should contain essential environment configuration variables. At a minimum, include the following variables:

Customize the .env file further with any additional environment-specific variables your application requires.

  1. Configuration Files:

Before creating the kernel and booting up the Michel Framework, it's crucial to ensure that your project's config directory contains the necessary configuration files. These files define various aspects of your application, such as services, routes, middleware, and more.

Here is a list of the essential configuration files that should be present in your config directory:

Ensure that these configuration files are correctly populated and tailored to your project's requirements. Proper configuration is essential for the Michel Framework to function as expected and deliver the desired behavior.

With the necessary configuration files in place, you can proceed with creating the kernel and launching your Michel Framework-powered application.

  1. Create a Kernel Class: Create a Kernel class that extends BaseKernel from the Michel Framework Core. This class is the heart of your application and is responsible for configuration and bootstrapping.

You can customize the Kernel class by implementing methods like getCacheDir, getProjectDir, getLogDir, getConfigDir, and getPublicDir to define the directories used by your application.

  1. Configuration Array: To configure the framework, you must define its settings using a configuration array. This array should be stored in a file named framework.php within the directory defined by public function getConfigDir(): string in the kernel.

  2. Initialize the Framework: Instantiate the Kernel class and configure it to meet your application's requirements.

Michel Framework Core Configuration

The configuration file for the Michel Framework Core, named framework.php, allows you to customize critical aspects of the framework's operation. It defines several key components and functions that are used by the framework to process HTTP requests and manage dependencies.

Server Request Configuration

The server_request section is a pivotal aspect of configuring the Michel Framework Core for PSR-7 compliance. In order to use this section effectively, you must first install a PSR-7-compatible library of your choice, as the framework does not have a default PSR-7 implementation.

Once you've installed a PSR-7 library, you can define a custom function within the server_request section to specify how the framework should create instances of the ServerRequestInterface. This customization allows you to tailor the request instantiation process to align with the PSR-7 specification and your application's specific requirements.

Here's an example of how you might configure the server_request section to use the Laminas Diactoros library for request instantiation:

Response Factory Configuration

The response_factory section is a critical component responsible for generating HTTP responses within the Michel Framework Core, and it operates in alignment with the PSR-17 standard (HTTP Factories). However, to use this section effectively, it's essential to install a PSR-17-compatible library of your choice since the framework does not include a default PSR-17 implementation.

Once you've installed a PSR-17 library, you can define a custom function within the response_factory section to specify how the framework should create instances of the ResponseFactoryInterface. This customization allows you to tailor the response generation process to comply with the PSR-17 specification and your application's specific needs.

Here's an example of how you might configure the response_factory section to use the Laminas Diactoros library for response instantiation:

Container Configuration

The container section is integral to managing dependencies and services within the Michel Framework Core. To use this section effectively, it's essential to have a PSR-11 compatible container implementation installed, as the framework does not provide a default PSR-11 container.

For example, you can configure the container section to use the \PhpDevCommunity\DependencyInjection\Container provided by the DevCoder library for dependency injection. Here's an example of how you might set it up:

Custom Environments

The custom_environments section is an array that allows you to define custom application environments beyond the standard 'development' and 'production' environments. You can use these custom environments to handle different aspects of your application based on specific requirements.


All versions of michel-core with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
psr/container Version ^1.0
psr/http-message Version ~1.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/event-dispatcher Version ^1.0
psr/http-factory Version ^1.0
psr/log Version ^1.1
phpdevcommunity/php-dotenv Version ^3.0
phpdevcommunity/php-options-resolver Version ^1.0
symfony/console Version ^5.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-core contains the following files

Loading the files please wait ....