{"id":37362961,"url":"https://github.com/olssonm/loopia-api","last_synced_at":"2026-01-16T04:48:12.627Z","repository":{"id":57031144,"uuid":"136450669","full_name":"olssonm/loopia-api","owner":"olssonm","description":"Simple wrapper for the Loopia XMLRPC-API","archived":false,"fork":false,"pushed_at":"2021-06-23T06:25:13.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T14:43:42.615Z","etag":null,"topics":["api","loopia","php","xmlrpc"],"latest_commit_sha":null,"homepage":null,"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/olssonm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-07T09:00:38.000Z","updated_at":"2023-03-17T12:11:57.000Z","dependencies_parsed_at":"2022-08-23T17:40:59.557Z","dependency_job_id":null,"html_url":"https://github.com/olssonm/loopia-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/olssonm/loopia-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olssonm%2Floopia-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olssonm%2Floopia-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olssonm%2Floopia-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olssonm%2Floopia-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olssonm","download_url":"https://codeload.github.com/olssonm/loopia-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olssonm%2Floopia-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","loopia","php","xmlrpc"],"created_at":"2026-01-16T04:48:12.516Z","updated_at":"2026-01-16T04:48:12.605Z","avatar_url":"https://github.com/olssonm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loopia API\n\nA super simple wrapper for the [Loopia XML RPC-API](https://www.loopia.se/api/) for PHP.\n\nRelies on [lstrojny/fxmlrpc](https://github.com/lstrojny/fxmlrpc) to make fast and efficient calls to the API. Requires PHP ^7.2 or PHP ^8.0.\n\n## Installation\n\n``` bash\n$ composer require olssonm/loopia-api\n```\n\n## Usage\n\nUsing the package is straight forward – just include the client, create an instance and make your calls.\n\nAll methods are listed over at the [Loopia API-documentation](https://www.loopia.se/api/).\n\n**Get all your domains**\n\n``` php\n    use Olssonm\\LoopiaApi\\Client;\n\n    $response = (new Client('username', 'password'))\n        -\u003egetDomains()\n        -\u003egetResponse();\n```\n\nIf needed, you may of course separate your code, like so:\n\n``` php\n    use Olssonm\\LoopiaApi\\Client;\n\n    $client = new Client('username', 'password');\n    $client-\u003egetDomains();\n    $response = $client-\u003egetResponse();\n```\n\n**Check the zone records for a domain (with subdomain)**\n\n``` php\n    use Olssonm\\LoopiaApi\\Client;\n\n    $response = (new Client('username', 'password'))\n        -\u003egetZoneRecords('example.com', '@')\n        -\u003egetResponse();\n```\n\n**Update your DNS (name)-servers**\n\n``` php\n    use Olssonm\\LoopiaApi\\Client;\n\n    $response = (new Client('username', 'password'))\n        -\u003eupdateDNSServers('example.com', ['ns1.loopia.se', 'ns2.loopia.se'])\n        -\u003egetResponse();\n```\n\n**Update your zone records**\n\n``` php\n    use Olssonm\\LoopiaApi\\Client;\n\n    $response = (new Client('username', 'password'))\n        -\u003eupdateZoneRecord('example.com', '@', [\n            'type' =\u003e 'A',\n            'ttl' =\u003e '3600',\n            'priority' =\u003e 10,\n            'rdata' =\u003e '74.125.0.0',\n            'record_id' =\u003e 0\n        ])\n        -\u003egetResponse();\n```\n\n## Testing\n\nCopy `/tests/boot.example.php` to `/tests/boot.php` and edit your settings. Then run:\n\n``` bash\nvendor/bin/phpunit --bootstrap ./tests/boot.php ./tests/LoopiaApiTests.php\n```\n\nOf course the domain under testing needs to be owned by your Loopia account. **Note:** The last test (`test_update_name_servers`) actually modifies your name servers, use with caution.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n© 2021 [Marcus Olsson](https://marcusolsson.me).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folssonm%2Floopia-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folssonm%2Floopia-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folssonm%2Floopia-api/lists"}