Coder Social home page Coder Social logo

ploi-php-sdk's Introduction

Hey! ๐Ÿ‘‹

This is our public profile page about ploi.io.

ploi-php-sdk's People

Contributors

cannonb4ll avatar fodderstompf avatar glennmen avatar grantholle avatar iamthesoundman avatar lukas-frey avatar miguilimzero avatar mikewink avatar richardfrankza avatar sebacarrasco93 avatar sekonda avatar simondotwhite avatar stanmenten99 avatar szepeviktor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ploi-php-sdk's Issues

Best way to delete site and all of it's data

I always get the error:

{"message":"The given data was invalid.","errors":["There are still sites running on this user, please remove\/detach these first."],"links":[]}

I use the code below to destroy the components, but I always get the same error, even though the statuscode is 200.

//DESTROY DATABASE
$ploi->server($sites->server_id)->databases($sites->database->database_id)->delete();

//DESTROY SITE
$site = $ploi->server($sites->server_id)->sites($sites->site_id)->delete()->getResponse();

if ($site->withStatus(200)) {
    //DESTROY USER
    $ploi->server($sites->server_id)->systemUsers($sites->user->user_id)->delete();
}

Request - block robots

Hi Dennis,

Maybe you can add the block robots you added to the ploi API and add it here too? ๐ŸŽ‰

Support for database "acknowledge" endpoint

From a support ticket I had open with Ploi I learned about an undocumented "acknowledge" endpoint for databases. For my specific use case I have an app that dynamically creates new databases and this acknowledge command tells Ploi the database exists. Here's a paste from the response in my support ticket.

POST https://ploi.io/api/servers/{server}/databases/acknowledge

With a parameter "name" as database name.

It would be useful for me if this could get added in. Thanks!

Add create SSH key to the readme

I saw that the readme/doc is not up to date.
Create an SSH key was not set.

You can add:

// Create SSH key
$ploi->servers(123)->sshKeys()->create(
$name = 'ssh key name',
$key = 'ssh key here',
$systemUser = 'ploi'
);

Tenants

Hi, I was wondering if its possible to add a checkCertificate function?
Also, I was wondering how can I just get the error messes with out the Exception, I tried the following but the process still stops on error

try {
    $ssl = $ploi_api->requestCertificate($this->domain,'');
} catch (Throwable $e) {
}

Also, I see your missing the tenants checkboxes on the profile->api keys

Thanks for the great API

Cannot create DB user on DB server with remote access rights

I setup a database server and create the users via script (php api sdk), like this:

$db = $this->ploi->servers($serverId)->databases()->create(
    $databaseName,
    $databaseUser,
    $databaseUserPassword,
    $description
)->getJson();

Unfortunately, the created users are not allowed to access remotely. Checking the API docs (https://github.com/ploi/ploi-php-sdk) as well as the source code

https://github.com/ploi/ploi-php-sdk/blob/master/src/Ploi/Resources/Database.php
https://github.com/ploi/ploi-php-sdk/blob/master/src/Ploi/Resources/DatabaseUser.php

I do not find how to add a remote user. It would be great if that could be added.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.