Details
Introduction
The Manifold Laravel package allows you to connect to your Manifold account and
pull your credentials, keys, configurations, etc. from your Manifold account
into your Laravel application.
Installation
- Install the package
composer require manifoldco/manifold-laravel
- Publish the config file
php artisan vendor:publish
Select manifoldco\manifold-laravel
from the vendor list.
- Add, at the very least, your Manifold Bearer token to your
.env
file as
follows
MANIFOLD_API_TOKEN=YOUR-TOKEN-HERE
- You may optionally specify a Resource, Project, or Product by providing their
respective IDs in your
.env
file.
MANIFOLD_RESOURCE_ID=YOUR-RESOURCE-ID
MANIFOLD_PROJECT_ID=YOUR-PROJECT-ID
MANIFOLD_PRODUCT_ID=YOUR-PRODUCT-ID
Usage
Once installed and configured, your project/resource variables from Manifold
will be pulled into your Laravel application as configurations. Your variables
can be accessed using the config
helper, using the key as it exists in
Manifold. For example, a variable stored in your Manifold resource named
API_KEY
can be accessed using config('API_KEY')
.
Note that keys are case sensitive. Also note that when variable keys conflict,
either with each other or with other Laravel configs, the last value with the
given key will be the one added to the configuration.
|
Name: |
PHP Manifold Laravel Integration |
Base name: |
env |
Description: |
Retrieve details from a Manifold account |
Version: |
- |
PHP version: |
5 |
License: |
GNU General Public License (GPL) |
|
|
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
File |
Role |
Description |
manifold.php |
Conf. |
Configuration script |