2017 © Pedro Peláez
 

library manager

Manager Provides Some Manager Functionality For Laravel 5

image

graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel 5

  • Thursday, March 1, 2018
  • by graham-campbell
  • Repository
  • 7 Watchers
  • 179 Stars
  • 2,156,743 Installations
  • PHP
  • 102 Dependents
  • 2 Suggesters
  • 21 Forks
  • 0 Open issues
  • 21 Versions
  • 8 % Grown

The README.md

Laravel Manager

Laravel Manager was created by, and is maintained by Graham Campbell, and provides some manager functionality for Laravel. Feel free to check out the change log, releases, security policy, license, code of conduct, and contribution guidelines., (*1)

Banner, (*2)

Build Status StyleCI Status Software License Packagist Downloads Latest Version , (*3)

Installation

This version requires PHP 7.4-8.3 and supports Laravel 8-11., (*4)

Manager L5.5 L5.6 L5.7 L5.8 L6 L7 L8 L9 L10 L11
4.7 :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :x: :x:
5.1 :x: :x: :x: :x: :x: :x: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

To get the latest version, simply require the project using Composer:, (*5)

$ composer require "graham-campbell/manager:^5.1"

Once installed, you can extend or implement the classes in this package to speed up writing Laravel packages further. There are no service providers to register., (*6)

Configuration

Laravel Manager requires no configuration. Just follow the simple install instructions and go!, (*7)

Usage

ConnectorInterface

This interface defines one public method., (*8)

The 'connect' method accepts one parameter which is an array of config., (*9)

This interface is not used by this package, but is used by the likes of Laravel Flysystem., (*10)

ManagerInterface

This interface defines the public methods a manager class must implement., (*11)

The 'connection' method accepts one optional parameter (the connection name), and will return a connection instance and will reuse a previous connection from the pool if possible., (*12)

The 'reconnect' method accepts one optional parameter (the connection name), and will return a connection instance after forcing a re-connect., (*13)

The 'disconnect' method accepts one optional parameter (the connection name), and will return nothing after removing the connection from the pool., (*14)

The 'getConnectionConfig' method has one required parameter (the connection name), and will return the config for the specified connection., (*15)

The 'getDefaultConnection' method will return the default connection as specified in the config., (*16)

The 'setDefaultConnection' method has one required parameter (the connection name), and will return nothing after setting the default connection., (*17)

The 'extend' method has two required parameter. The first is the name of a connection, or the name of a connection driver. The second parameter must be callable. The purpose of this method is to add custom connection creation methods on the fly. The second parameter must return a connection., (*18)

The 'getConnections' method will return an array of all the connections currently in the pool., (*19)

AbstractManager

This abstract class implements the ManagerInterface. It has two abstract protected methods that must be implemented by extending classes., (*20)

The 'createConnection' method will be called with the specific connection config as the first parameter. It must return a connection instance., (*21)

The 'getConfigName' method must return the name of the connection config. This may be 'yourname\yourpackage' for example., (*22)

You can also dynamically call methods on the default connection due to the use of __call so instead of writing ->connection()->methodName(), you can just jump straight in with ->methodName()., (*23)

Further Information

You may see an example of implementation in Laravel Flysystem, Laravel DigitalOcean, and Laravel GitHub., (*24)

Security

If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. You may view our full security policy here., (*25)

License

Laravel Manager is licensed under The MIT License (MIT)., (*26)

For Enterprise

Available as part of the Tidelift Subscription, (*27)

The maintainers of graham-campbell/manager and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more., (*28)

The Versions

01/03 2018

dev-master

9999999-dev

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

11/02 2018

v4.0.0

4.0.0.0

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

02/01 2018

3.0.x-dev

3.0.9999999.9999999-dev

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

06/08 2017

v3.0.0

3.0.0.0

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

01/01 2017

v2.5.0

2.5.0.0

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

01/01 2017

2.5.x-dev

2.5.9999999.9999999-dev

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

26/04 2016

v2.4.0

2.4.0.0

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

30/01 2016

v2.3.1

2.3.1.0

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

14/11 2015

v2.3.0

2.3.0.0

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

06/10 2015

v2.2.1

2.2.1.0

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

26/06 2015

v2.2.0

2.2.0.0

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

07/05 2015

v2.1.0

2.1.0.0

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

05/02 2015

v2.0.0

2.0.0.0

Manager Provides Some Manager Functionality For Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

11/01 2015

v1.0.4

1.0.4.0

Manager Provides Some Manager Functionality For Laravel 4.1/4.2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

11/01 2015

1.0.x-dev

1.0.9999999.9999999-dev

Manager Provides Some Manager Functionality For Laravel 4.1/4.2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

19/10 2014

v1.0.3

1.0.3.0

Manager Provides Some Manager Functionality For Laravel 4.1/4.2

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

09/08 2014

v1.0.2

1.0.2.0

Manager Provides Some Manager Functionality For Laravel 4.1+

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

27/07 2014

v1.0.1

1.0.1.0

Manager Provides Some Manager Functionality For Laravel 4.1+

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

20/07 2014

v1.0.0

1.0.0.0

Manager Provides Some Manager Functionality For Laravel 4.1+

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

16/07 2014

v1.0.0-RC1

1.0.0.0-RC1

Manager Provides Some Manager Functionality For Laravel 4.1+

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager

31/05 2014

v0.1.0-alpha

0.1.0.0-alpha

Manager Provides Some Manager Functionality For Laravel 4.1

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Graham Campbell

laravel framework manager graham campbell grahamcampbell interface connector laravel manager laravel-manager