Download the PHP package webdevlabs/phreak without Composer

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

Phreak!

Build Status Codacy Badge SymfonyInsight StyleCI

ultra-light fast php framework powered by:

Installation

composer create-project webdevlabs/phreak

Serve app localy with the built-in PHP web server

php -S localhost:8000 -t public

Autoloader

Very simple and understandable using the Namespace as file path. All directory names are converted to lowercase, file cases are kept as written. Example:

will autoload the file \app\controllers\Front.php

Simple Routing

Calls the App\Controllers\User::displayUser($id) method with {id} parameter as an argument

Controller Routing

Calls the App\Controllers\Front.php with the proper request method.

Advanced Routing

Filters

Calls class App\Models\Auth with method checkLogin() and break on return false.

Group all requests under http://host/profile/ through filter

More advanced routings can be found at Phroute's page.

Validation

Simple controller

More advanced examples can be found in the 'modules' directory.

Events

Database

You now have different options for managing your database. There are 2 existing database drivers. Sample database wrapper class DB:: and the well known database mapper Eloquent.

You control what database driver to load directly from config/database.php

Example PDO driver fetch queries:

The new available method for managing your database is Eloquent (from the Laravel framework).

The Eloquent ORM provides a beautiful, simple ActiveRecord implementation for working with your database. Each database table has a corresponding "Model" which is used to interact with that table. Models allow you to query for data in your tables, as well as insert new records into the table.

Examples of phreak eloquent usage can be found at the 'modules/eloq' made for demonstration.

Full documentation can be found at Eloquent's page.

Console Commands

You can also execute phreak controllers from your console/crontab by calling the console.php file where the parameters are the filename of the controller.

Calls the App\Commands\SomeController.php with the proper request method.

All console controllers are located in the "app/commands" folder. The folder location is defined in the 'app/ConsoleController.php' and can be changed.


All versions of phreak with dependencies

PHP Build Version
Package Version
Requires smarty/smarty Version ^3.1
tedivm/stash Version ^0.14.1
php-di/php-di Version ^5.4
phroute/phroute Version ^2.1
zendframework/zend-diactoros Version ^1.3
oscarotero/psr7-middlewares Version ^3.20
relay/relay Version ~1.0
illuminate/database Version ^5.5
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 webdevlabs/phreak contains the following files

Loading the files please wait ....