Download the PHP package minimal/framework without Composer

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

Minimal Framework

Please acknowledge that this is solely a Tech/Skill Demo. It is not intended for use in actual projects, although it is fully functional and tested under PHP 7.

Minimal is a MVC web application framework for PHP.

The code snippet demonstrates a monolithic approach to the framework, employing facades to define a single-function web application endpoint. There is much more than static classes under the hood! It is an efficient solution for developing small REST APIs. The framework automatically converts ORM returned data (models implementing the JsonableInterface) into JSON, streamlining the API response process. Conversely, the framework accommodates alternative setup familiar in other frameworks, supporting a traditional modular MVC architecture for more complex, larger-scale projects.

...and if you're not happy with the Router (or any other component), you could do:

...yes, SOLID principles.


CLI

Introduction

Key features:

Requirements

  1. PHP version 7.x
  2. composer

Install

With the default directory structure:

Then point your server's document root to the public directory.

If you use the PHP-builtin webserver then do:

Vendor libraries only:

Minimal installation for code style like in the introduction above:

Usage

CLI

Quickstart example

CLI

Routing

Direct output:

http://localhost/hello/julien/duseyau -> Hello Julien Duseyau

Using controllers

or

http://localhost/hello/julien/duseyau -> Hello Julien Duseyau

Route groups
File download
Single route execution from anywhere

CLI

Dependency injection

Binding a interface to a implementation is straight forward:

or in config/bindings.php

CLI

Providers

Providers are service providers

or in config/providers.php

CLI

Middlewares

Standalone example

CLI

Controllers

The controllers specified in the routes are instantiated through Provider->make() (e.g. App::make()), which will always look for a singleton first, then search the service container for a provider or factory or else just create a instance and inject dependencies. Which means there is nothing to do to make this controller with concrete dependencies work:

In order to use interfaces, bindings have to be registered. See also config/bindings.php

For a more control register a factory. See also config/providers.php

CLI

Views

Result:

Where to do these View calls? Anywhere is fine. But one place could be:

then

CLI

Assets

Outputs:

CLI

CLI

List all registered routes
List all registered modules
List all registered bindings
List all registered providers
List all events and subscribers
List all registered config

CLI


Components

Minimal requires at least these packages:

These packages are also included but are not necessary:


License

The Minimal framework is open-sourced software licensed under the MIT license

CLI


All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
minimal/assets Version v0.1.4
minimal/benchmark Version v0.1.2
minimal/cli Version v0.2.0
minimal/database Version v0.1.8
minimal/html Version v0.2.0
minimal/minimal Version v0.5.0
minimal/paths Version v0.1.7
minimal/presenters Version v0.1.1
minimal/translation Version v0.1.3
minimal/views Version v0.1.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 minimal/framework contains the following files

Loading the files please wait ....