PHPackages                             puerari/cwp\_api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. puerari/cwp\_api

ActiveLibrary[API Development](/categories/api)

puerari/cwp\_api
================

CWP\_API is a PHP package that abstracts the interaction with CentOS Web Panel through its API

v1.0(5y ago)92616[1 PRs](https://github.com/puerari/cwp_api/pulls)MITPHPPHP ^7.0

Since May 24Pushed 1y ago3 watchersCompare

[ Source](https://github.com/puerari/cwp_api)[ Packagist](https://packagist.org/packages/puerari/cwp_api)[ Docs](https://www.linkedin.com/in/leandropuerari)[ RSS](/packages/puerari-cwp-api/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

CWP API, by @puerari
====================

[](#cwp-api-by-puerari)

[![Maintainer](https://camo.githubusercontent.com/b8bce3ba09e24a164377d4380b77eecad2e0e91b54acc19d901327e7794939d0/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d406c65616e64726f707565726172692d626c75652e7376673f7374796c653d666c61742d737175617265)](https://www.linkedin.com/in/leandropuerari)[![Source Code](https://camo.githubusercontent.com/f92c6447034ae6b40cc7a01f745d02ca464eeef25b31849f9d5f69e74afce39c/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d707565726172692f6377705f6170692d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/puerari/cwp_api)[![PHP from Packagist](https://camo.githubusercontent.com/cae8b1f9d19ca8d52263726c694974222794dc2646ccbf44147fcda0cf3a0f17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f707565726172692f6377705f6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/puerari/cwp_api)[![Latest Version](https://camo.githubusercontent.com/6391c69b73f3353fb94737619c013f58d97687b7d33e38a5563ed4557df515db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f707565726172692f6377705f6170692e7376673f7374796c653d666c61742d737175617265)](https://github.com/puerari/cwp_api/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/8407b0c228ae4a747391e6709922e19d47c4917557b88a424b0695b184c51b74/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f707565726172692f6377705f6170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/puerari/cwp_api)[![Quality Score](https://camo.githubusercontent.com/2345ddea3fb11b0b0122bea5c7d53c023c8df51796a97ea1b021c68c3edf8c63/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f707565726172692f6377705f6170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/puerari/cwp_api)[![Total Downloads](https://camo.githubusercontent.com/bcd959759633cd745431e517c04cd06a507c24b33d98c1857104f4acbd331fcb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f707565726172692f6377705f6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/puerari/cwp_api)

About CWP API
-------------

[](#about-cwp-api)

###### CWP API is a PHP package that abstracts the interaction with CentOS Web Panel through its API

[](#cwp-api-is-a-php-package-that-abstracts-the-interaction-with-centos-web-panel-through-its-api)

CWP API é um pacote PHP que abstrai a interação com o Painel de Controle de Hospedagens Web CentOS através de sua API.

About CWP
---------

[](#about-cwp)

###### [CentOS Web Panel](https://centos-webpanel.com/) is a Free Web Hosting control panel designed for quick and easy management of (Dedicated &amp; VPS) servers minus the chore and effort to use ssh console for every time you want to do something, offers a huge number of options and features for server management in its control panel package.

[](#centos-web-panel-is-a-free-web-hosting-control-panel-designed-for-quick-and-easy-management-of-dedicated--vps-servers-minus-the-chore-and-effort-to-use-ssh-console-for-every-time-you-want-to-do-something-offers-a-huge-number-of-options-and-features-for-server-management-in-its-control-panel-package)

[CentOS Web Panel](https://centos-webpanel.com/) é um Painel de Controle de Hospedagens Web, Gratuito, projetado para gerenciamento rápido e fácil de servidores (dedicados e VPS), que reduz tarefa e o esforço de usar o console ssh sempre que você precisar fazer algo, oferece um grande número de opções e recursos para gerenciamento de servidores em seu pacote do painel de controle.

### Highlights

[](#highlights)

- Easy to set up (Fácil de configurar)
- Composer ready (Pronto para o composer)
- PSR-2 compliant (Compatível com PSR-2)

Installation
------------

[](#installation)

CWP\_API is available via Composer:

add the following line on your composer.json file

```
"puerari/cwp_api": "^1.0"
```

or run

```
composer require puerari/cwp_api
```

Usage
-----

[](#usage)

Follow the CWP documentation to enable API on your server:

Include the Composer autoloader file;

```
require_once 'vendor/autoload.php';
```

Instantiate the Cwpapi class

```
$cwpApi = new Cwpapi('https://yourcwpdomain.com', 'ApiKeyGenetedOnYouCwpAdminPanel');
```

Call the methods that solve your necessities. Each method is documented in its definition.

See the official documentation on

Example: how to create a new user account and a database associated with the created account.

```
$status = $cwpApi->createAccount('userdomain.com', 'username', 'userPassword', 'contact@userdomain.com', '123.456.789.0');
if ((json_decode($status))->status != 'OK') {
    exit((json_decode($status))->msj);
}
$status = $cwpApi->createMysqlDatabase('username', 'dbname');
if ((json_decode($status))->status != 'OK') {
    $cwpApi->deleteAccount('username', 'contact@userdomain.com');
    exit((json_decode($status))->msj . ' The account was created, but due to this error we deleted it.');
}
// User account and database successfully created
```

Support
-------

[](#support)

###### Security: If you discover any security related issues, please use the issue tracker on [GitHub](https://github.com/puerari/cwp_api/issues).

[](#security-if-you-discover-any-security-related-issues-please-use-the-issue-tracker-on-github)

Se você descobrir algum problema relacionado à segurança, por favor utilize o rastreador de problemas do [GitHub](https://github.com/puerari/cwp_api/issues).

Credits
-------

[](#credits)

- [Leandro Puerari](https://github.com/puerari) (Developer)
- [Contributors](https://github.com/puerari/cwp_api/contributors)
- [CentOS Web Panel](https://centos-webpanel.com/)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/puerari/cwp_api/blob/master/LICENSE) for more information.

Contributing
------------

[](#contributing)

Please see [contributing page](https://github.com/puerari/cwp_api/blob/master/CONTRIBUTING.md) for details.

Thank You
---------

[](#thank-you)

**Let's Code...**

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2185d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e496a1b1aa0e94d0ea49dbed6096200acc4b9fe2d5481fcd6e0033e9a7eff0de?d=identicon)[puerari](/maintainers/puerari)

---

Top Contributors

[![puerari](https://avatars.githubusercontent.com/u/702157?v=4)](https://github.com/puerari "puerari (8 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

apicwpcentosPuerariWeb Panel

### Embed Badge

![Health badge](/badges/puerari-cwp-api/health.svg)

```
[![Health](https://phpackages.com/badges/puerari-cwp-api/health.svg)](https://phpackages.com/packages/puerari-cwp-api)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
