https://github.com/spinen/ncentral-php-client
SPINEN's PHP Client for N-able Ncentral
https://github.com/spinen/ncentral-php-client
api api-client client laravel laravel-package n-able php solarwinds spinen
Last synced: 2 months ago
JSON representation
SPINEN's PHP Client for N-able Ncentral
- Host: GitHub
- URL: https://github.com/spinen/ncentral-php-client
- Owner: spinen
- Created: 2017-10-28T15:21:27.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2022-01-10T20:51:07.000Z (over 4 years ago)
- Last Synced: 2025-07-17T18:49:12.709Z (11 months ago)
- Topics: api, api-client, client, laravel, laravel-package, n-able, php, solarwinds, spinen
- Language: PHP
- Homepage: https://spinen.com
- Size: 32.2 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# SPINEN's PHP Client for N-able's N-Central
[](https://packagist.org/packages/spinen/ncentral-php-client)
[](https://packagist.org/packages/spinen/ncentral-php-client)
[](https://packagist.org/packages/spinen/ncentral-php-client)
[](https://packagist.org/packages/spinen/ncentral-php-client)
PHP Client for [N-able's N-Central](https://www.n-able.com/products/n-central).
We solely use [Laravel](http://www.laravel.com) 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
| Branch | Status | Coverage | Code Quality |
| ------ | :----: | :------: | :----------: |
| Develop | [](https://github.com/spinen/ncentral-php-client/workflows/CI/badge.svg?branch=develop) | [](https://scrutinizer-ci.com/g/spinen/ncentral-php-client/badges/coverage.png?b=develop) | [](https://scrutinizer-ci.com/g/spinen/ncentral-php-client/?branch=develop) |
| Master | [](https://github.com/spinen/ncentral-php-client/workflows/CI/badge.svg?branch=master) | [](https://scrutinizer-ci.com/g/spinen/ncentral-php-client/badges/coverage.png?b=master) | [](https://scrutinizer-ci.com/g/spinen/ncentral-php-client/?branch=master) |
## Prerequisite
* [laminas/laminas-code](https://github.com/laminas/laminas-code) - ONLY if you want/need to use the wizard from [phpro/soap-client](https://github.com/phpro/soap-client) to regenerate the Client's class files.
* [nesbot/carbon](https://github.com/briannesbitt/Carbon)
* TODO: Add others here
## Install
Install Ncentral Client:
```bash
$ composer require spinen/ncentral-php-client
```
[Optional] Add the alias to ```config/app.php```
```php
'aliases' => [
# other aliases omitted
'Ncentral' => Spinen\Ncentral\Laravel\Facades\Ncentral::class,
],
```
## Configuration for Laravel
Add the following to ```config/services.php```...
```php
'ncentral' => [
// TODO: Document vars here
],
```
Add the appropriate values to your ```.env```...
```bash
'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
```