Download the PHP package axsor/laravel-phpipam without Composer
On this page you can find all versions of the php package axsor/laravel-phpipam. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download axsor/laravel-phpipam
More information about axsor/laravel-phpipam
Files in axsor/laravel-phpipam
Package laravel-phpipam
Short Description PhpIPAM wrapper for laravel
License GPL-3.0-or-later
Informations about the package laravel-phpipam
Laravel - PhpIPAM
PhpIPAM wrapper for laravel
Attention: Lastest stable version is from this repository. Actual developement is not finished and posted to packagist yet.
Index
- Installation
- Configuration
- How to use
- Available methods
- License
Installation
Install it via composer:
composer require axsor/laravel-phpipam
If you are using Laravel 5.4 or lower you must add PhpIPAMServiceProvider to
your config/app.php
:
Higher versions will auto-discover it.
Configuration
Edit your .env
file and add your PhpIPAM credentials:
And run php artisan config:cache
to reload config cache.
If you want to use different PhpIPAM connections, you have to publish the config file using the next command and configure as connections as you want:
php artisan vendor:publish --provider="Axsor\\PhpIPAM\\PhpIPAMServiceProvider" --tag="config"
If in some moment you want to use other different configuration you can set it:
How to use
Object parameters nomenclature and data type must agree on PhpPIAM API Documentation.
Most of methods returns Models (Address, Subnet, ...), Collections of models or action results as boolean ('created', 'updated', ...).
When you call PhpIPAM model you can pass the ID or the model that contains the id. ex. PhpIPAM::subnet($subnetId)
will return same than PhpIPAM::subnet($subnetObject)
.
Connections
You can set multiple instances of PhpIPAM.
Available methods
All api calls are wrapped by the controllers into Models, Collections or simple data types.
(Pending:) If you want to get the response content without wrapping you can use the same command adding "Raw" as suffix. ex. PhpIPAM::addressRaw($address)
. That will return you an associative array with the response content.
The model methods will call Global methods;
Section
Global methods
Model methods
Device
Global methods
Model methods
Subnet
Global methods
Model methods
Address
Global methods
Model methods
Circuit
Global methods
Model methods
Tools
Global methods
Model methods
License
GPL-3.0