Download the PHP package ingenerator/microframework without Composer

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

microframework provides an extremely lightweight, opinionated, framework for simple HTTP request handlers (e.g. Cloud Run / Lambda / Cloud Functions style endpoints).

It provides:

It is designed & tested to run under apache v2.4 with mod_php, mod_prefork, and mod_rewrite. Other runtime configurations may work but are not officially supported.

It does not - and will not - provide routing, runtime configuration management, dependency injection, HTML templating, middlewares, event dispatch or any similar features of more full-featured frameworks.

Getting started

composer require ingenerator/microframework

Handling requests

Provision a PHP file as your entrypoint. This could be at {Apache DocumentRoot}/index.php or at any other location (e.g. you could place it in a subdirectory of a larger / more complex project alongside code that uses a different framework).

Versioning policy

The package follows semver. For ease of maintenance, any given package version will only support a single PHP version and one minor version of each of the (small number of) composer dependencies.

It is expected that you may need to update your function code to the latest supported PHP / composer dependency version to be able to upgrade to a newer minor version of this package.

We may occasionally publish bugfix versions against an older version of the package to deal with security or severe bugs, but the majority of changes will only be applied to the current minor version.

Running tests

The package has some unit & integration tests which can be run with phpunit in the normal way.

We also provide a suite of blackbox tests to verify the overall behaviour of the package by making HTTP requests against a distribution version of the package in a supported runtime environment. The test environment for this is quite specific and is provisioned with uses docker compose and some custom scripts to ensure that the system under test has an exact copy of (only) the production code. See test/blackbox/README.md for more details on how this works.

Contributing

Contributions are welcome but please contact us before you start work on anything : this is an opinionated package and we may have particular requirements / opinions that differ from yours.

Contributors

This package has been sponsored by inGenerator Ltd

Licence

Licensed under the BSD-3-Clause-Licence.


All versions of microframework with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0
ingenerator/php-utils Version ^2.0
guzzlehttp/psr7 Version ^2.7
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 ingenerator/microframework contains the following files

Loading the files please wait ....