2017 © Pedro Peláez
 

library hmvc

Laravel HMVC.

image

darthsoup/hmvc

Laravel HMVC.

  • Tuesday, April 4, 2017
  • by darthsoup
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,472 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 23 Forks
  • 0 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

Laravel HMVC.

For Laravel 4, please use the v1.x branch!

HMVC is a tool for making internal request., (*1)

Installation

To get the lastest version of HMVC simply require it in your composer.json file., (*2)

"teepluss/hmvc": "dev-master"

You'll then need to run composer install to download it and have the autoloader updated., (*3)

Once HMVC is installed you need to register the service provider with the application. Open up config/app.php and find the providers key., (*4)

'providers' => array(

    'Teepluss\Hmvc\HmvcServiceProvider'

)

HMVC also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your config/app.php file., (*5)

'aliases' => [

    'HMVC' => 'Teepluss\Hmvc\Facades\HMVC',

]

Usage

HMVC helping you to work with internal request., (*6)

Internal testing request.

// GET Request.
HMVC::get('user/1');

// POST Request.
HMVC::post('user', array('title' => 'Demo'));

// PATCH Request.
HMVC::patch('user/1', array('title' => 'Changed'));

// PUT Request.
HMVC::put('user/1', array('title' => 'Changed'));

// DELETE Request.
HMVC::delete('user/1');

// Internal request with domain route.
HMVC::invoke('/someinternalpath', 'post', array('param' => 1))

// You can make remote request without changing code also.
HMVC::post('http://api.github.com', array('username' => 'teepluss'));

// Request remote with invokeRemote.
HMVC::invokeRemote('http://api.github.com', 'post', array('username' => 'teepluss'));

// Configure remote client.
$config = array('auth' => array('admin', 'admin'));
echo HMVC::configureRemoteClient($config)->get('http://127.0.0.1:9200');

// Get Guzzle to use other features.
$guzzle = HMVC::getRemoteClient();

Remote request using Guzzle as an adapter., (*7)

Support or Contact

If you have some problem, Contact teepluss@gmail.com, (*8)

Support via PayPal, (*9)

The Versions

04/04 2017

dev-master

9999999-dev https://github.com/teepluss/laravel-hmvc

Laravel HMVC.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel hmvc

04/04 2017

dev-analysis-Xk7939

dev-analysis-Xk7939 https://github.com/teepluss/laravel-hmvc

Laravel HMVC.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel hmvc

05/03 2015

2.0.0

2.0.0.0 https://github.com/teepluss/laravel-hmvc

Laravel HMVC.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel hmvc

05/03 2015

v1.x-dev

1.9999999.9999999.9999999-dev https://github.com/teepluss/laravel-hmvc

Laravel HMVC.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel hmvc

05/03 2015

1.0.0

1.0.0.0 https://github.com/teepluss/laravel-hmvc

Laravel HMVC.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel hmvc

05/03 2015

dev-develop

dev-develop https://github.com/teepluss/laravel-hmvc

Laravel HMVC.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel hmvc