Download the PHP package deweppro/framework without Composer

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

API Framework Dewep

skeleton: https://github.com/deweppro/framework-api-skeleton

How to initialize an instance:

A sample configuration file [config.yml]:

To display in the response file in which the error occurred:

The answer format for scalar answers is text/html; charset=utf-8, for non - scalar answers::

Routing

You can add routes through the config file

Where the placeholder {user} will be passed to the controller as a variable:

Or you can specify a route generator, which must contain a method - public function handler()

Middleware

You can specify the middleware to be executed before and after the main code is executed. Middleware should match the interface \Dewep\Interfaces\MiddlewareInterface

Dependency injection

For dependency injection you can create providers that must match the interface Dewep\Interfaces\ProviderInterface

Access to providers occurs through the Container: Container::get('logger')->...

Console

Work with the console occurs through the console application

The console command is added to the config file as follows: command name: class

All command classes must match the interface \Dewep\Interfaces\ConsoleInterface

Executing a command with parameters:

View a list of commands:

Directory structure


All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
ext-json Version *
ext-mbstring Version *
deweppro/client Version ^2.0
deweppro/db Version ^1.0
deweppro/http Version ^3.0
deweppro/patterns Version ^2.0
monolog/monolog Version ^1.0
psr/log Version ^1.1
symfony/yaml Version ^3.4
predis/predis Version ^1.1
twig/twig Version ^2.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 deweppro/framework contains the following files

Loading the files please wait ....