{"id":18784161,"url":"https://github.com/kdevelopement/cpanelapi","last_synced_at":"2025-08-25T16:06:04.345Z","repository":{"id":61030968,"uuid":"547705663","full_name":"KDevelopement/cPanelApi","owner":"KDevelopement","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-08T23:14:23.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T11:51:44.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KDevelopement.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-08T06:08:08.000Z","updated_at":"2023-12-10T22:39:04.000Z","dependencies_parsed_at":"2022-10-08T20:21:53.299Z","dependency_job_id":null,"html_url":"https://github.com/KDevelopement/cPanelApi","commit_stats":null,"previous_names":["klicense/cpanelapi","kdevelopement/cpanelapi"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDevelopement%2FcPanelApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDevelopement%2FcPanelApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDevelopement%2FcPanelApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDevelopement%2FcPanelApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KDevelopement","download_url":"https://codeload.github.com/KDevelopement/cPanelApi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239699583,"owners_count":19682575,"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":[],"created_at":"2024-11-07T20:42:09.726Z","updated_at":"2025-02-19T17:17:58.598Z","avatar_url":"https://github.com/KDevelopement.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## cPanel API PHP (Simples)\nManage your cPanel server with this PHP library. \nSimple to use. With this PHP library, you can manage your cPanel.\n\n[![License](https://img.shields.io/packagist/l/previewtechs/cpanel-whm-api.svg)](https://github.com/k7brasil/cPanelApi/blob/master/LICENSE)\n[![Build Status](https://api.travis-ci.org/k7brasil/cPanelApi.svg?branch=master)](https://travis-ci.org/k7brasil/cPanelApi)\n[![Code Coverage](https://scrutinizer-ci.com/g/k7brasil/cPanelApi/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/k7brasil/cPanelApi/?branch=master)\n[![Code Quality](https://scrutinizer-ci.com/g/k7brasil/cPanelApi/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/k7brasil/cPanelApi/?branch=master)\n[![Code Quality](https://scrutinizer-ci.com/g/k7brasil/cPanelApi/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/g/k7brasil/cPanelApi/?branch=master)\n\n### Installation\n\nYou can install this library with composer.\n\n```bash\ncomposer require kseven/cpanelapi\n```\n\n### Usage example\n```php\n\u003c?php\n  require \"vendor/autoload.php\";\n\n  //Build CPanel Client\n  use KSeven\\CPanel\\Init;\n  use KSeven\\CPanel\\Functions\\Databases;\n\n  $Auth = [\n    \"HOST\" =\u003e \"seuhost\",\n    \"PORT\" =\u003e \"2083\",\n    \"USER\" =\u003e \"user\",\n    \"PASSWORD\" =\u003e \"pass\"\n  ];\n\n  $cPanel = new Init($Auth);\n  $Database = new Databases($cPanel);\n\n  var_dump($Database-\u003egetDatabases());\n```\n\n### Available Functionality\n- CPanel\n  - Databases (MySQL®)\n    - Database Information\n      - getServerInformationDatabase (This function returns information about the account's host)\n      - LocateServerDatabase (This function returns information about the account's host.)\n    - Database Management\n      - CheckDatabase (This function checks for errors in all of the tables in a database.)\n      - CreateDatabase (This function creates a database.)\n      - DeleteDatabase (This function deletes a database.)\n      - DumpSchemaDatabase (This function returns a string that you can give to to recreate a particular database’s schema.)\n      - getDatabases (This function lists an account's databases.)  \n      - RenameDatabase (This function renames a database.)\n      - RepairDatabase (This function repairs all of the tables in a database)\n      - UpdatePrivilegesDatabase (This function updates privileges for all databases and users on an account.)\n    - Remote Databases\n      - AddHostDatabase (This function authorizes a remote host to access the account's databases.)\n      - AddHostNoteDatabase (This function adds a note about a remote server.)\n      - DeleteHostDatabase (This function removes a remote host's access to the account's databases.)\n      - getHostNotesDatabases (This function returns the notes associated with the account's remote hosts.)\n    - User Management\n      - CreateUserDatabase (This function creates a database user.)\n      - DeleteUserDatabase (This function deletes a user.)\n      - getPrivilegesOnDatabase (This function lists a database user's privileges.)\n      - getRestrictionsDatabases (This function lists a database's name, username length restrictions, and database prefix.)\n      - ListRoutinesDatabases (This function returns a database user's routines.)\n      - ListUsersDatabases (This function lists an account's database users.)\n      - RenameUserDatabase (This function renames a database user.)\n      - RemovePrivilegesUserDatabase (This function revokes a database user's privileges.)\n      - SetPasswordUserDatabase (This function sets a database user's password.)\n      - SetPrivilegesUserDatabase (This function sets a database user's privileges.)\n  - no more (pls)\n\n### Contibutions\nYou are always welcome to contribute in this library.\n\nSee our [list of contributors](https://github.com/k7brasil/cPanelApi/graphs/contributors)\n\n### Issues/Bug Reports\nPlease [create an issue or report a bug](https://github.com/k7brasil/cPanelApi/issues/new) in this GitHub repository and we will be\nhappy to look into that.\n\n### License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Domain Reseller API\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdevelopement%2Fcpanelapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdevelopement%2Fcpanelapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdevelopement%2Fcpanelapi/lists"}