2017 © Pedro Peláez
 

cakephp-plugin address

Address plugin for CakePHP

image

oxenti/address

Address plugin for CakePHP

  • Tuesday, July 26, 2016
  • by oxenti
  • Repository
  • 7 Watchers
  • 0 Stars
  • 102 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

OxenTI Address API plugin for CakePHP 3

This plugin contains a package with API methods for managing Addresses on a CakePHP 3 application., (*1)

Requirements

  • CakePHP 3.0+

Installation

You can install this plugin into your CakePHP application using composer., (*2)

The recommended way to install composer packages is:, (*3)

composer require oxenti/address

Configuration

In your app's config/bootstrap.php add:, (*4)

// In config/bootstrap.php
Plugin::load('Address');

or using cake's console:, (*5)

./bin/cake plugin load Address

In your app's 'config/app.php' add this to your Datasources array:, (*6)

    'oxenti_address' => [
        'className' => 'Cake\Database\Connection',
        'driver' => 'Cake\Database\Driver\Mysql',
        'persistent' => false,
        'host' => 'ỳour_db_host',
        'username' => 'username',
        'password' => 'password',
        'database' => 'databse_name',
        'encoding' => 'utf8',
        'timezone' => 'UTC',
        'cacheMetadata' => true,
        'log' => false,
        'quoteIdentifiers' => false,
    ],
    'test_oxenti_address' => [
        'className' => 'Cake\Database\Connection',
        'driver' => 'Cake\Database\Driver\Mysql',
        'persistent' => false,
        'host' => 'ỳour_db_host',
        'username' => 'username',
        'password' => 'password',
        'database' => 'databse_name',
        'encoding' => 'utf8',
        'timezone' => 'UTC',
        'cacheMetadata' => true,
        'log' => false,
        'quoteIdentifiers' => false,
    ],

Configuration files

Move the 'address.php' config file from the plugin's config folder to your app's config folder., (*7)

On your app's 'bootstrap.php' add the address configuration file:, (*8)

    ...
    try {
        Configure::config('default', new PhpConfig());
        Configure::load('app', 'default', false);
    } catch (\Exception $e) {
        die($e->getMessage() . "\n");
    }

    Configure::load('address', 'default');
    ...

Using extrenal Associations

If you want to associate the Address table with other tables on your application, use the address.php configuration file setting the 'relations' entry to your needs., (*9)

The Versions

26/07 2016

dev-master

9999999-dev

Address plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

19/02 2016

dev-dev

dev-dev

Address plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires