Download the PHP package bulton-fr/bfw-controller without Composer

On this page you can find all versions of the php package bulton-fr/bfw-controller. 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 bfw-controller

bfw-controller

Module Controller pour BFW

Build Status Coverage Status Scrutinizer Code Quality Latest Stable Version License


Install :

You can use composer to get the module : composer require bulton-fr/bfw-controller @stable

And to install the module : ./vendor/bin/bfwInstallModules

Config :

All config file for this module will be into app/config/bfw-controller/. There are one file to configure (manifest.json is for the module update system).

The file config.php

Use it :

Create your controller files into the directory /src/controllers.

For an object controller, you can extends from the class \BfwController\Controller. This class adding properties $app and $request who are a direct access to the instance of the classes \BFW\Application and \BFW\Request. You can use the namespace \Controller, it's added by the framework and corresponding to the directory /src/controllers.

For a procedural controller, the file will be included into a closure who is into the method \BfwController\BfwController::runProcedural(). So you will have a direct access to $this of the class, and you will have variables $routerLinker and $controllerFile into the scope.

Example :

Extract from the BFW wiki, an exemple with an object controller.

Router module :

This module not manage the application routing. You need to add a router module too.

The route module have a config file to define each route. For each route, you should define a "target". With bfw-controller, the "target" value should have a specified format :


All versions of bfw-controller with dependencies

PHP Build Version
Package Version
Requires bulton-fr/bfw Version ~3.0.0-RC11@RC
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 bulton-fr/bfw-controller contains the following files

Loading the files please wait ....