Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/travisghansen/pfsense_fauxapi_php_client
pfSense PHP API client
https://github.com/travisghansen/pfsense_fauxapi_php_client
api client firewall pfsense php
Last synced: 3 months ago
JSON representation
pfSense PHP API client
- Host: GitHub
- URL: https://github.com/travisghansen/pfsense_fauxapi_php_client
- Owner: travisghansen
- License: apache-2.0
- Created: 2018-09-04T21:09:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T21:10:49.000Z (over 6 years ago)
- Last Synced: 2024-09-21T13:54:32.941Z (4 months ago)
- Topics: api, client, firewall, pfsense, php
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
A simple PHP client for leveraging the [pfsense_fauxapi](https://github.com/ndejong/pfsense_fauxapi). See
[pfsense_fauxapi](https://github.com/ndejong/pfsense_fauxapi) for available methods. Review `Client.php` if further
details are needed.# Sample
```php
'http(s)://host[:port]',
'apiKey' => 'PFFA...',
'apiSecret' => '',
];$client = new PfSenseFauxApi\Client($options);
$response = $client->config_get();
var_dump($response);$response = $client->config_backup_list();
var_dump($response);//$response = $client->config_reload();
//var_dump($response);//$response = $client->gateway_status();
//var_dump($response);//$response = $client->rule_get();
//var_dump($response);/*
$data [
"system" => [
"dnsserver" => [
"8.8.8.8",
"8.8.4.4"
],
"hostname" => "newhostname"
]
];$response = $client->config_patch($data);
var_dump($response);$data = [
'function' => 'openbgpd_install_conf'
];
$response = $client->function_call($data);
var_dump($response);*/
?>
```