{"id":16409800,"url":"https://github.com/hyperized/hostfact","last_synced_at":"2025-04-07T13:06:30.159Z","repository":{"id":32170142,"uuid":"35743412","full_name":"hyperized/hostfact","owner":"hyperized","description":"Unofficial implementation of the HostFact API v2 for Laravel 5","archived":false,"fork":false,"pushed_at":"2025-04-07T09:30:00.000Z","size":1598,"stargazers_count":16,"open_issues_count":0,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-07T10:29:59.187Z","etag":null,"topics":["hostfact","hostfact-api","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperized.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-16T22:59:36.000Z","updated_at":"2025-04-07T09:29:57.000Z","dependencies_parsed_at":"2023-02-19T05:31:33.346Z","dependency_job_id":"f03b2c9d-15a0-4a5f-b1a2-df07d43bd241","html_url":"https://github.com/hyperized/hostfact","commit_stats":{"total_commits":297,"total_committers":16,"mean_commits":18.5625,"dds":"0.23905723905723908","last_synced_commit":"1fae9bdaf19fb0214438ed50667fb68725246d45"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperized%2Fhostfact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperized%2Fhostfact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperized%2Fhostfact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperized%2Fhostfact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperized","download_url":"https://codeload.github.com/hyperized/hostfact/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657277,"owners_count":20974344,"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":["hostfact","hostfact-api","php"],"created_at":"2024-10-11T06:21:31.944Z","updated_at":"2025-04-07T13:06:30.129Z","avatar_url":"https://github.com/hyperized.png","language":"PHP","readme":"# Hostfact API 3.0 for Laravel\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fhyperized%2Fhostfact.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fhyperized%2Fhostfact?ref=badge_shield)\n\nOfficial documentation:\n-----------------------\n\n* [Hostfact API documentation](https://www.hostfact.nl/developer/api/)\n\nInstallation\n------------\n\nInstall using composer:\n\n```bash\ncomposer require hyperized/hostfact\n```\n\nThis package supports Package Auto-Discovery (Laravel 5.5+) so it doesn't require you to manually add the\nServiceProvider and alias.\n\nIf you are using a lower version of Laravel or not using Auto-Discovery you can add the Hostfact Service Provider to\nthe `config/app.php` file\n\n```php\nHyperized\\Hostfact\\HostfactServiceProvider::class,\n```\n\nRegister an alias for Hostfact, also in `config/app.php`:\n\n```php\n'Hostfact'    =\u003e Hyperized\\Hostfact\\HostfactServiceProvider::class,\n```\n\nNow publish the Hostfact package into your installation:\n\n```bash\nphp artisan vendor:publish --provider=\"Hyperized\\Hostfact\\HostfactServiceProvider\" --tag=\"config\"\n```\n\nThis should give you a message\nlike: `Copied File [/vendor/hyperized/hostfact/config/Hostfact.php] To [/config/Hostfact.php]`\n\nIt's possible to edit your configuration variables in the `config/Hostfact.php` file or you can use the `HOSTFACT_URL`\nand `HOSTFACT_KEY` environment variables to store sensitive information in the `.env` file\n\n```php\n// config/Hostfact.php\n'api_v2_url'\t\t=\u003e env('HOSTFACT_URL', 'https://yoursite.tld/Pro/apiv2/api.php'),\n'api_v2_key'\t\t=\u003e env('HOSTFACT_KEY', 'token'),\n'api_v2_timeout'\t=\u003e env('HOSTFACT_TIMEOUT', 20),\n\n// .env/.env.example\nHOSTFACT_URL=https://yoursite.tld/Pro/apiv2/api.php\nHOSTFACT_KEY=token\nHOSTFACT_TIMEOUT=20\n```\n\nFunctionality\n---------\n\nWhen writing code for this Hostfact package, consider that this package has been written as a basic interface.\n\nThis package _will_ do the following:\n\n* Provide an easy way to communicate with Hostfact API controllers;\n* Document the available API controller endpoints with methods;\n* Transport layer (HTTP/HTTPS) error catching;\n* Basic error parsing;\n\nThis package _will not_:\n\n* Parameter / input validation;\n* Output validation;\n\nYou will need to consult the [Hostfact API documentation](https://www.hostfact.nl/developer/api/) to understand the\nacceptable input and output for each of the API controllers.\n\nExamples\n--------\n\nExample code:\n\n```php\nuse \\Hyperized\\Hostfact\\Api\\Controllers\\Product;\n\n$products = Product::new()\n                -\u003elist([\n                    'searchfor' =\u003e 'invoice'\n                ]);\n```\n\n## License\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fhyperized%2Fhostfact.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fhyperized%2Fhostfact?ref=badge_large)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperized%2Fhostfact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperized%2Fhostfact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperized%2Fhostfact/lists"}