{"id":37233659,"url":"https://github.com/omines/directadmin","last_synced_at":"2026-01-15T03:55:09.055Z","repository":{"id":50933347,"uuid":"44833012","full_name":"omines/directadmin","owner":"omines","description":"PHP client library to manage DirectAdmin control panel servers.","archived":true,"fork":false,"pushed_at":"2023-03-18T18:04:08.000Z","size":732,"stargazers_count":106,"open_issues_count":13,"forks_count":49,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-11-27T16:17:49.075Z","etag":null,"topics":["control-panel","directadmin","directadmin-servers","library","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/omines.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2015-10-23T19:08:16.000Z","updated_at":"2025-03-17T11:43:37.000Z","dependencies_parsed_at":"2022-08-28T15:32:04.843Z","dependency_job_id":"b852b83c-dbb4-4a58-9707-aea36fe768c7","html_url":"https://github.com/omines/directadmin","commit_stats":{"total_commits":153,"total_committers":9,"mean_commits":17.0,"dds":"0.14379084967320266","last_synced_commit":"f7d709e72695adb27ddc60b9f18bbcf8c2b9cfe6"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/omines/directadmin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omines%2Fdirectadmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omines%2Fdirectadmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omines%2Fdirectadmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omines%2Fdirectadmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omines","download_url":"https://codeload.github.com/omines/directadmin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omines%2Fdirectadmin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["control-panel","directadmin","directadmin-servers","library","php"],"created_at":"2026-01-15T03:55:08.513Z","updated_at":"2026-01-15T03:55:09.045Z","avatar_url":"https://github.com/omines.png","language":"PHP","readme":"# DirectAdmin API client\n\n[![Build Status](https://travis-ci.org/omines/directadmin.svg?branch=master)](https://travis-ci.org/omines/directadmin)\n[![Coverage Status](https://coveralls.io/repos/omines/directadmin/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/omines/directadmin?branch=master)\n[![Scrutinizer](https://img.shields.io/scrutinizer/g/omines/directadmin.svg)](https://scrutinizer-ci.com/g/omines/directadmin/?branch=master)\n[![SensioLabs Insight](https://img.shields.io/sensiolabs/i/47a71204-f274-4416-9db1-9773d65845ca.svg)](https://insight.sensiolabs.com/projects/47a71204-f274-4416-9db1-9773d65845ca)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/omines/directadmin/master/LICENSE)\n\n**This package is no longer supported by the original authors as we no longer use DirectAdmin. The library still worked fine when we left it, use at your own risk. If you want to take over just push your fork to Packagist, it's MIT all the way.**\n\nThis is a PHP client library to manage DirectAdmin control panel servers. We simply decided to develop this as we needed\nautomation of our own DirectAdmin servers, and the existing implementations were unsupported and incomplete.\n\n[API documentation for this project is automatically generated on each push](https://omines.github.io/directadmin/api/).\n\n## Installation\n\n[![Packagist](https://img.shields.io/packagist/v/omines/directadmin.svg)](https://packagist.org/packages/omines/directadmin)\n[![Packagist](https://img.shields.io/packagist/vpre/omines/directadmin.svg)](https://packagist.org/packages/omines/directadmin#dev-master)\n\nThe recommended way to install this library is through [Composer](http://getcomposer.org):\n```bash\ncomposer require omines/directadmin\n```\n\nIf you're not familiar with `composer` follow the installation instructions for\n[Linux/Unix/Mac](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) or\n[Windows](https://getcomposer.org/doc/00-intro.md#installation-windows), and then read the\n[basic usage introduction](https://getcomposer.org/doc/01-basic-usage.md).\n\n## Dependencies\n\nThe library uses [Guzzle 6](https://github.com/guzzle/guzzle) as its HTTP communication layer. PHP versions supported\nare 5.6, 7.0, 7.1 and hhvm.\n\n## Basic usage\n\nTo set up the connection use one of the base functions:\n\n```php\nuse Omines\\DirectAdmin\\DirectAdmin;\n\n$adminContext = DirectAdmin::connectAdmin('http://hostname:2222', 'admin', 'pass');\n$resellerContext = DirectAdmin::connectReseller('http://hostname:2222', 'reseller', 'pass');\n$userContext = DirectAdmin::connectUser('http://hostname:2222', 'user', 'pass');\n```\n\nThese functions return an\n[`AdminContext`](https://omines.github.io/directadmin/api/class-Omines.DirectAdmin.Context.AdminContext.html),\n[`ResellerContext`](https://omines.github.io/directadmin/api/class-Omines.DirectAdmin.Context.ResellerContext.html), and\n[`UserContext`](https://omines.github.io/directadmin/api/class-Omines.DirectAdmin.Context.UserContext.html)\nrespectively exposing the functionality available at the given level. All three extend eachother as DirectAdmin uses a\nstrict is-a model. To act on behalf of a user you can use impersonation calls:\n\n```php\n$resellerContext = $adminContext-\u003eimpersonateReseller($resellerName);\n$userContext = $resellerContext-\u003eimpersonateUser($userName);\n```\nBoth are essentially the same but mapped to the correct return type. Impersonation is also done implicitly\nwhen managing a user's domains:\n\n```php\n$domain = $adminContext-\u003egetUser('user')-\u003egetDomain('example.tld');\n```\nThis returns, if the domain exists, a [`Domain`](https://omines.github.io/directadmin/api/class-Omines.DirectAdmin.Objects.Domain.html)\ninstance in the context of its owning user, allowing you to manage its email accounts et al transparently.\n\n## Contributions\n\nAs the DirectAdmin API keeps expanding pull requests are welcomed, as are requests for specific functionality.\nPull requests should in general include proper unit tests for the implemented or corrected functions.\n\nFor more information about unit testing see the `README.md` in the tests folder.\n\n## Legal\n\nThis software was developed for internal use at [Omines Full Service Internetbureau](https://www.omines.nl/)\nin Eindhoven, the Netherlands. It is shared with the general public under the permissive MIT license, without\nany guarantee of fitness for any particular purpose. Refer to the included `LICENSE` file for more details.\n\nThe project is not in any way affiliated with JBMC Software or its employees.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomines%2Fdirectadmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomines%2Fdirectadmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomines%2Fdirectadmin/lists"}