Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Cpanel Bundle Laravel Package

ap/cpanel-bundle

View on GitHub
Deep Wiki
Context7

ApCpanelBundle

Easy to use Cpanel API bundle

Step 1: Download ApCpanelBundle using composer

Add ApCpanelBundle by running the command:

$ php composer.phar require ap/cpanel-bundle 'dev-master'

Step 2: Register the ApCpanelBundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Ap\CpanelBundle(),
    );
}

Step 3: Configure the ApCpanelBundle

Edit your config.yml:

ap_cpanel:
    domain: yourdomain.com
    whmusername: yourusername
    whmhash: yourhashahahsshshshshdfasdfkjasadfasdf....

Example:

<?php

public function someAction()
{
//..    
	$cpanel = $this->container->get('ap_cpanel.api');
	
    $accountsJson = $cpanel->listaccts()->exec();
    
    $result   = json_decode($accountsJson, TRUE);
//..    
}
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views
spatie/ignition-contracts
earls/stork-command-queue-bundle