Download the PHP package davihu/phalcon-ext without Composer

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

Phalcon Ext

Various extensions and utilities for Phalcon Framework

Pre-requisites

  1. Phalcon framework 2.x or 3.x

Installation

Using Composer

You can use the composer package manager to install. Either run:

$ php composer.phar require davihu/phalcon-ext "^1.2"

or add:

"davihu/phalcon-ext": "^1.2"

to your composer.json file

Whats new?

Version 1.2

Added nested set support

Adds nested set support to your model. Simply use trait \PhalconExt\Mvc\Model\Traits\NestedSetTrait in your model.

Version 1.1

Added SQL database migrations support

Can be easily attached to your console application.

Supported commands:
php console.php migrations generate                        # generates new migration class
php console.php migrations migrate                         # migrates database to last version
php console.php migrations migrate 160910160944            # migrates database to selected version
php console.php migrations sql > migrate.sql               # saves SQL statements for migration to last version to file migrate.sql
php console.php migrations sql 160910160944 > migrate.sql  # saves SQL statements for migration to selected version to file migrate.sql
Set up in console bootstrap file:

1) Choose migrations directory

define('MIGRATIONS_DIR', '... your migrations dir ...');

2) Register dir to your loader

Without namespace usage

$loader->registerDirs([ ... , MIGRATIONS_DIR]);

With namespace usage

$loader->registerNamespaces([ ... , 'Your\\Namespace' => MIGRATIONS_DIR]);

3) Register migrations service to DI

Without namespace usage

$di->set('migrations', function () {
    return new \PhalconExt\Db\SqlMigrations($this->get('db'), MIGRATIONS_DIR);
}, true);

With namespace usage

$di->set('migrations', function () {
    return new \PhalconExt\Db\SqlMigrations($this->get('db'), MIGRATIONS_DIR, 'Your\\Namespace');
}, true);
Writing migrations classes
use PhalconExt\Db\SqlMigrations\AbstractMigration;

class Migration160910160944 extends AbstractMigration
{
    public function up()
    {
        # simple statements
        $this->addSql("ALTER TABLE robots ADD COLUMN number VARCHAR(20)");

        # routine statements like triggers, procedures and functions
        $this->addSql("CREATE TRIGGER MyTrigger ...", true);
    }

    public function down()
    {
        $this->addSql("ALTER TABLE robots DROP COLUMN number");
        $this->addSql("DROP TRIGGER MyTrigger");
    }
}

Thats all, very simple but powerfull!

Contents

Db

Model

Validators

License

Phalcon Ext is open-sourced software licensed under the New BSD License. © David Hübner


All versions of phalcon-ext with dependencies

PHP Build Version
Package Version
Requires php Version >=7.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 davihu/phalcon-ext contains the following files

Loading the files please wait ....