{"id":17592939,"url":"https://github.com/travisghansen/pfsense_fauxapi_php_client","last_synced_at":"2025-04-30T03:44:22.469Z","repository":{"id":57072510,"uuid":"147419702","full_name":"travisghansen/pfsense_fauxapi_php_client","owner":"travisghansen","description":"pfSense PHP API client","archived":false,"fork":false,"pushed_at":"2018-09-04T21:10:49.000Z","size":8,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T03:44:16.992Z","etag":null,"topics":["api","client","firewall","pfsense","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/travisghansen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-04T21:09:34.000Z","updated_at":"2023-05-12T16:52:15.000Z","dependencies_parsed_at":"2022-08-24T10:40:54.131Z","dependency_job_id":null,"html_url":"https://github.com/travisghansen/pfsense_fauxapi_php_client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisghansen%2Fpfsense_fauxapi_php_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisghansen%2Fpfsense_fauxapi_php_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisghansen%2Fpfsense_fauxapi_php_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisghansen%2Fpfsense_fauxapi_php_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/travisghansen","download_url":"https://codeload.github.com/travisghansen/pfsense_fauxapi_php_client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251638750,"owners_count":21619661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","client","firewall","pfsense","php"],"created_at":"2024-10-22T05:44:19.102Z","updated_at":"2025-04-30T03:44:22.449Z","avatar_url":"https://github.com/travisghansen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nA simple PHP client for leveraging the [pfsense_fauxapi](https://github.com/ndejong/pfsense_fauxapi).  See \n[pfsense_fauxapi](https://github.com/ndejong/pfsense_fauxapi) for available methods.  Review `Client.php` if further\ndetails are needed.\n\n# Sample\n```php\n\u003c?php\n\nrequire_once('vendor/autoload.php');\n\n$options = [\n    'uri' =\u003e 'http(s)://host[:port]',\n    'apiKey' =\u003e 'PFFA...',\n    'apiSecret' =\u003e '\u003csecret\u003e',\n];\n\n$client = new PfSenseFauxApi\\Client($options);\n$response = $client-\u003econfig_get();\nvar_dump($response);\n\n$response = $client-\u003econfig_backup_list();\nvar_dump($response);\n\n//$response = $client-\u003econfig_reload();\n//var_dump($response);\n\n//$response = $client-\u003egateway_status();\n//var_dump($response);\n\n//$response = $client-\u003erule_get();\n//var_dump($response);\n\n\n/*\n$data  [\n  \"system\" =\u003e [\n    \"dnsserver\" =\u003e [\n      \"8.8.8.8\",\n      \"8.8.4.4\"\n    ],\n    \"hostname\" =\u003e \"newhostname\"\n  ]\n];\n\n$response = $client-\u003econfig_patch($data);\nvar_dump($response);\n\n$data = [\n    'function' =\u003e 'openbgpd_install_conf'\n];\n$response = $client-\u003efunction_call($data);\nvar_dump($response);\n\n*/\n\n?\u003e\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravisghansen%2Fpfsense_fauxapi_php_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravisghansen%2Fpfsense_fauxapi_php_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravisghansen%2Fpfsense_fauxapi_php_client/lists"}