Download the PHP package adaiasmagdiel/erlenmeyer without Composer

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

Erlenmeyer - Minimal PHP Framework for Web Applications

Erlenmeyer is a lightweight PHP framework designed to create web applications simply and efficiently. The name "Erlenmeyer" is a nod to Flask, a minimal Python framework I admire for its simplicity. However, this project is not intended to mimic Flask exactly or follow its patterns to the letter. Currently in its early stages, Erlenmeyer is ideal for small, lightweight applications without heavy commitments. I built it primarily for my own basic projects to avoid repeatedly setting up the same structure, but it can be useful for anyone seeking a straightforward and practical solution.

Table of Contents


Installation

To start using Erlenmeyer, install it via Composer with the following command:

Ensure Composer is installed in your environment. After installation, you can include Erlenmeyer in your PHP project using Composer's autoload.


Features

Erlenmeyer provides essential features to build web applications quickly and effectively:

Note: The Assets class is used internally to manage static files and does not require direct configuration by the user.


Get Started

Configuring .htaccess

To let Erlenmeyer handle all requests, configure an .htaccess file in your project's root to redirect everything to index.php. Here's an example:

This ensures all requests are routed through Erlenmeyer, except for existing files or directories.

Minimal Application Example

Here's a basic example of how to create an application with Erlenmeyer:

In this example:

Using Middlewares

Middlewares allow you to add logic before or after request processing. Here's an example of a global middleware that measures execution time:

For a route-specific middleware, such as authentication:

Configuring CORS

Erlenmeyer makes it easy to set up CORS. For a specific route:

To apply CORS globally, use a middleware:

Serving Static Assets

Erlenmeyer automatically serves static files from the /public directory (or another configured directory). For example, a file at /public/css/style.css is accessible at /assets/css/style.css.

To customize the assets directory or route:

This sets /my-assets as the base directory and /static as the route for accessing files.


Reference

App Class

The App class is the core of Erlenmeyer, managing routes, middlewares, and application execution.

Request Class

The Request class encapsulates HTTP request data.

Response Class

The Response class controls the HTTP response sent to the client.


License

Erlenmeyer is distributed under the GPLv3 license. See the LICENSE file in the repository for more details.


All versions of erlenmeyer with dependencies

PHP Build Version
Package Version
Requires adaiasmagdiel/hermes Version ^1.0
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 adaiasmagdiel/erlenmeyer contains the following files

Loading the files please wait ....