Download the PHP package mamuz/phalcon-application without Composer

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

phalcon-application

Author Build Status Latest Stable Version Total Downloads License

Phalcon Application is built on top of Phalcon3 Framework and provides simple and customizable application bootstrapping.

Requirements

Installation

Install the latest version with

Features

Usage

Bootstrapping an application without view support, e.g. a REST application

For more details have a look to the functional tests at https://github.com/mamuz/phalcon-application/blob/master/tests/functional/ActionDomainResponseCest.php based on that example project.

Bootstrapping an application with view support (mostly to response with rendered HTML)

Check https://docs.phalconphp.com/en/latest/reference/views.html for using views in Phalcon.

Phalcon's view engine supports the three-step view template pattern. That means you can have a main-layout (outerframe), which includes a controller based layout (frame), which in turn includes an action based layout (innerframe).

Like this:

So each controller action can have an own template for rendering.

For instance you have a controller with two actions like:

This leads to two view templates located at:

Regarding the three-step view template pattern you can place these ones at:

In case of ajax requests (XHR) outerframe and frame rendering is disabled, which means only the innerframe is rendered.

For more details have a look to the functional tests at https://github.com/mamuz/phalcon-application/blob/master/tests/functional/ViewCest.php based on that example project.

Bootstrapping an application as a command line tool

Check https://docs.phalconphp.com/en/latest/reference/cli.html#tasks for creating tasks.

Run a command with arguments

Let's imagine that the application is bootstrapped inside index.php

That will call the send action from the mailing task with invoking reminder as an argument.

Run a command with arguments and options

Let's imagine that the application is bootstrapped inside index.php

That will call the send action from the mailing task with invoking reminder as an argument. Inside the send action the options are aware by $this->dispatcher->getOptions().

For more details have a look to the functional tests at https://github.com/mamuz/phalcon-application/blob/master/tests/functional/CommandLineCest.php based on that example project.

Application Skeleton

To have a good starting place you should check the skeleton which is based on this project.


All versions of phalcon-application with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
ext-phalcon Version ^3.3
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 mamuz/phalcon-application contains the following files

Loading the files please wait ....