{"id":24524007,"url":"https://github.com/hnhdigital-os/php-linode-api","last_synced_at":"2025-06-26T11:33:16.213Z","repository":{"id":56985146,"uuid":"119234618","full_name":"hnhdigital-os/php-linode-api","owner":"hnhdigital-os","description":"The v4 Linode API for PHP [BETA].","archived":false,"fork":false,"pushed_at":"2018-05-20T13:28:19.000Z","size":572,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-10T23:04:32.487Z","etag":null,"topics":["api","linode","php","v4"],"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/hnhdigital-os.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-01-28T06:36:54.000Z","updated_at":"2024-06-30T15:41:44.000Z","dependencies_parsed_at":"2022-08-21T12:20:21.844Z","dependency_job_id":null,"html_url":"https://github.com/hnhdigital-os/php-linode-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hnhdigital-os/php-linode-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnhdigital-os%2Fphp-linode-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnhdigital-os%2Fphp-linode-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnhdigital-os%2Fphp-linode-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnhdigital-os%2Fphp-linode-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hnhdigital-os","download_url":"https://codeload.github.com/hnhdigital-os/php-linode-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnhdigital-os%2Fphp-linode-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262056383,"owners_count":23251670,"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","linode","php","v4"],"created_at":"2025-01-22T04:17:48.918Z","updated_at":"2025-06-26T11:33:16.186Z","avatar_url":"https://github.com/hnhdigital-os.png","language":"PHP","funding_links":["https://patreon.com/RoccoHoward"],"categories":[],"sub_categories":[],"readme":"```\n _     _                 _       ___  ______ _____\n| |   (_)               | |     / _ \\ | ___ \\_   _|\n| |    _ _ __   ___   __| | ___/ /_\\ \\| |_/ / | |\n| |   | | '_ \\ / _ \\ / _` |/ _ \\  _  ||  __/  | |\n| |___| | | | | (_) | (_| |  __/ | | || |    _| |_\n\\_____/_|_| |_|\\___/ \\__,_|\\___\\_| |_/\\_|    \\___/\n\n```\n\nThe v4.01 Linode API for PHP [BETA].\n\n![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Definately a work in progress. Do not use.\n\n[![Latest Stable Version](https://poser.pugx.org/hnhdigital-os/php-linode-api/v/stable.svg)](https://packagist.org/packages/hnhdigital-os/php-linode-api) [![Total Downloads](https://poser.pugx.org/hnhdigital-os/php-linode-api/downloads.svg)](https://packagist.org/packages/hnhdigital-os/php-linode-api) [![Latest Unstable Version](https://poser.pugx.org/hnhdigital-os/php-linode-api/v/unstable.svg)](https://packagist.org/packages/hnhdigital-os/php-linode-api) [![License](https://poser.pugx.org/hnhdigital-os/php-linode-api/license.svg)](https://packagist.org/packages/hnhdigital-os/php-linode-api) [![Donate to this project using Patreon](https://img.shields.io/badge/patreon-donate-yellow.svg)](https://patreon.com/RoccoHoward)\n\n[![Build Status](https://travis-ci.org/hnhdigital-os/php-linode-api.svg?branch=master)](https://travis-ci.org/hnhdigital-os/php-linode-api) [![StyleCI](https://styleci.io/repos/119234618/shield?branch=master)](https://styleci.io/repos/119234618) [![Test Coverage](https://codeclimate.com/github/hnhdigital-os/php-linode-api/badges/coverage.svg)](https://codeclimate.com/github/hnhdigital-os/php-linode-api/coverage) [![Issue Count](https://codeclimate.com/github/hnhdigital-os/php-linode-api/badges/issue_count.svg)](https://codeclimate.com/github/hnhdigital-os/php-linode-api) [![Code Climate](https://codeclimate.com/github/hnhdigital-os/php-linode-api/badges/gpa.svg)](https://codeclimate.com/github/hnhdigital-os/php-linode-api)\n\nThis package has been developed by H\u0026H|Digital, an Australian botique developer. Visit us at [hnh.digital](http://hnh.digital).\n\nThis package is built automatically using the OpenAPI specification for the Linode v4 API.\n\n## Documentation\n\n* [Requirements](#requirements)\n* [Installation](#install)\n* [Examples](#examples)\n* [Contributing](#contributing)\n* [Credits](#credits)\n* [License](#license)\n\n## Requirements\n\n* PHP 7.1+\n\n## Install\n\nVia composer:\n\n`$ composer require hnhdigital-os/php-linode-api dev-master`\n\n## Examples\n\n### Regions\n\nResults returned from any search based endpoint are provided as an instance of that type. This allows you to call any endpoints immediately.\n\nResults from the `get` method are returned as an object that implements `Iterator` and `Countable`, allowing you to use this in a `foreach` and to use `count`. Linode limits search results to 25 records per page - this is overcome by automatically requesting the next page of records when the last record is reached in the current page.\n\n```php\nforeach ((new Regions())-\u003eget() as $region) {\n    // Do something with the region data (returned as an instance of Region)\n}\n```\n\nCalling the `all` method automatically loads every page of results.\n```php\n$regions = (new Regions())-\u003eget()-\u003eall();\n```\n\n### Region\n\nYou can get a specific record, simply by creating the object with the required parameters. This will automatically call the endpoint and return the object ready to use. The record will auto-load by setting the last parameter to true.\n\n```php\n$region = new Region('us-east-1a', true);\n\necho $region-\u003eid.' ('.$region-\u003ecountry.')';\n```\n```\nus-east-1a (US)\n```\n\nCalling the `get` method directly on this same class will return an array of the values from the same endpoint. This will also auto-fill the object (the same as above, passing the true actually just calls the get method).\n\n```php\n$result = (new Region('us-east-1a'))-\u003eget();\n\nprint_r($result);\n```\n```\nArray\n(\n    [id] =\u003e us-east-1a\n    [country] =\u003e US\n)\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/hnhdigital-os/php-linode-api/blob/master/CONTRIBUTING.md) for details.\n\n## Credits\n\n* [Rocco Howard](https://github.com/RoccoHoward)\n* [All Contributors](https://github.com/hnhdigital-os/php-linode-api/contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](https://github.com/hnhdigital-os/php-linode-api/blob/master/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhnhdigital-os%2Fphp-linode-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhnhdigital-os%2Fphp-linode-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhnhdigital-os%2Fphp-linode-api/lists"}