spinen / ncentral-php-client
SPINEN's PHP Client for N-able's N-Central.
0.1.0
2022-01-10 20:45 UTC
Requires
- php: >=7.3
- guzzlehttp/guzzle: ~6.3|~7.4
- illuminate/support: ~7.0|~8.0
- nesbot/carbon: ~2.13
- phpro/soap-client: ^1.7
Requires (Dev)
- mockery/mockery: ~1.3.2
- phpunit/phpunit: ~9.0
- psy/psysh: ~0.10
This package is auto-updated.
Last update: 2024-12-11 03:20:17 UTC
README
PHP Client for N-able's N-Central.
We solely use Laravel for our applications, so there is some Laravel specific files that you can use if you are using this client in a Laravel application. We have tried to make sure that you can use the client outside of Laravel, and have some documentation about it below.
Build Status
Prerequisite
- laminas/laminas-code - ONLY if you want/need to use the wizard from phpro/soap-client to regenerate the Client's class files.
- nesbot/carbon
- TODO: Add others here
Install
Install Ncentral Client:
$ composer require spinen/ncentral-php-client
[Optional] Add the alias to config/app.php
'aliases' => [ # other aliases omitted 'Ncentral' => Spinen\Ncentral\Laravel\Facades\Ncentral::class, ],
Configuration for Laravel
Add the following to config/services.php
...
'ncentral' => [ // TODO: Document vars here ],
Add the appropriate values to your .env
...
'NCENTRAL_WSDL_PATH' - Path to the Ncentral WSDL file or URL
Usage
Set up a new NcentralClient
using its factory...
$client = Spinen\Ncentral\NcentralClientFactory::factory(env('NCENTRAL_WSDL_PATH'));
Non-Laravel Usage
To use the client outside of Laravel, you just need to new-up the objects...
// TODO: Document usages here