mgufrone / cpanel-whm Goto Github PK
View Code? Open in Web Editor NEWLaravel CPanel WHM Package
Laravel CPanel WHM Package
Hi, When using removeAccount, it always times out. Guzzle timeout. how do i change this?
Anyway to override the host, user, password using the Facade? Couldn't figure this one out.
Dead Link on readme.md
file
http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/XmlApi
First, awesome work !
For example: Is it possible to get the FTP Details of a specific user ?
So i can fully implement all features in my own website, so that the user dont have to log in to the control panel.
What is the syntax in this case?
/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=Email&cpanel_jsonapi_func=accountname&account="[email protected]"
Hi i am using Laravel 5.1, and performed the following steps to create an email account but i keep getting the error - cURL error 3: malformed
Step 1: Add to compposer.json -> require -> "gufy/cpanel-whm":"~1.0"
Step 2: composer update
Step 3: added to routes.php
use Gufy\CpanelPhp\Cpanel;
Route::get('/temp', function () {
$cpanel = new Cpanel;
$cpanel->addEmailAccount('test', '[email protected]', 'test123!');
echo 'Done';
});
Could i please request some help with this?
Hi! Congratulations for pakage
I have a CRUD where I register my servers, and I need to instantiate the CpanelWhm object with information from the database. How to make?
$cpanel = new CpanelWhm([
'host' => $server->host, // ip or domain complete with its protocol and port
'username' => 'root', // username of your server, it usually root.
'auth_type' => 'hash', // set 'hash' or 'password'
'password' => $server->whm_token, // long hash or your user's password
]);
dd($cpanel::listaccts());
return error
cURL error 7: Failed to connect to 127.0.0.1 port 2087: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
It forces the search for config. Is there a way?
Tks!
Can i use this package with Laravel 5 and the new API structures as listed here - https://documentation.cpanel.net/display/SDK/Software+Development+Kit+Home ???
It seems your links to the whm+cpanel api lead to 404's...
Great i think this is not a really issue, but i want to know how to create database objects in database, using this package, ive already managed to create databases and attach users to it.
I recently added your package from my fresh installation of Laravel 5.4.19
and I got this error.
Call to undefined method Illuminate\Foundation\Application::share()
I'm sure the share()
method is now deprecated in Laravel 5.4
Hi, great tools there, and it save lots of my time of using this to access WHM api. but how about cPanel account level? Example if i would like to create a new database for an user, what should i do?
Remote Access Key is being depreciated and will be using API Tokens instead.
"Warning: This interface is deprecated and will be removed in a future release. We strongly suggest that you use the Manage API Tokens interface."
Looks like a few updates may be needed.
Trying to use this with Laravel 5.4
Installed then trying to run
php artisan vendor:publish gufy/cpanel-whm
gives the error
[Symfony\Component\Console\Exception\RuntimeException]
Too many arguments, expected arguments "command".
I get an error like this in CpanelWhmServiceProvider.php line 32
Call to undefined method Illuminate\Foundation\Application::share()
There where some changes in the framework, share() method was dropped.
Hello,
When curl fails to connect WHM account, laravel dies.
How do I show a simple error message?
Regards
Almamun
i am experiencing a problem when installing.
Installation request for laravel/framework (locked at v7.12.0, required as ^7.0) -> satisfiable by laravel/framework[v7.12.0]
Hello,
listaccts, loadavg functions works well but I can't get getdiskusage with this package.
CpanelWhm::getdiskusage()
Could deploy the API 1 WHM
It would be cool, if you could extract the usage of the API from laravel, so it could be used externally.
Using this package I'm unable to use WHM API version 1, only version 0. Is there a switch for that or something like that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.