From 22496dac3a25477e3d44d14a206250caccbe6492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 12:19:00 -0300 Subject: [PATCH 01/13] Laravel 6 --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 3376583..57b4ee1 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "tabuna/vesta-api", + "name": "elicast/vesta-api", "description": "VestaCP client for Laravel", "keywords": [ "framework", @@ -11,7 +11,7 @@ "type": "library", "require": { "guzzlehttp/guzzle": "^6.2", - "laravel/framework": "^5.0" + "laravel/framework": "^6.0" }, "license": "GPL-3.0", "support": { @@ -20,8 +20,8 @@ }, "authors": [ { - "name": "Alexandr Chernyaev", - "email": "bliz48rus@gmail.com" + "name": "Hélio CG", + "email": "suporte@elicast.com.br" } ], "autoload": { From f4d8ad9f0deeed52c272bbea686be468804badb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 12:19:43 -0300 Subject: [PATCH 02/13] Rename pacote --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9442039..4e33a34 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Powerful API client hosting VestaCP for Laravel Going your project directory on shell and run this command: ```sh -$ composer require tabuna/vesta-api +$ composer require elicast/vesta-api ``` Publication From 0c569ca146e44f64e5ee1455497b614bd254450a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 12:21:19 -0300 Subject: [PATCH 03/13] Dev --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 57b4ee1..752a668 100644 --- a/composer.json +++ b/composer.json @@ -39,6 +39,6 @@ } } }, - "minimum-stability": "stable", + "minimum-stability": "dev", "prefer-stable": true } From 034d63980f221043d75522a957a0c7235d511e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 12:26:27 -0300 Subject: [PATCH 04/13] Update composer.json --- composer.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 752a668..418b540 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "elicast/vesta-api", + "name": "heliocg/vesta-api", "description": "VestaCP client for Laravel", "keywords": [ "framework", @@ -11,7 +11,7 @@ "type": "library", "require": { "guzzlehttp/guzzle": "^6.2", - "laravel/framework": "^6.0" + "laravel/framework": "^5.0" }, "license": "GPL-3.0", "support": { @@ -19,6 +19,10 @@ "source": "https://github.com/tabuna/VestaAPI" }, "authors": [ + { + "name": "Alexandr Chernyaev", + "email": "bliz48rus@gmail.com" + }, { "name": "Hélio CG", "email": "suporte@elicast.com.br" From 03044ff924b3072f4b7f33057a32c7c694a16a45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 12:27:17 -0300 Subject: [PATCH 05/13] Package name --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e33a34..6b493d6 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Powerful API client hosting VestaCP for Laravel Going your project directory on shell and run this command: ```sh -$ composer require elicast/vesta-api +$ composer require heliocg/vesta-api ``` Publication From e333102f9a3ade11d4b08d9553382f49aa033b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 12:41:45 -0300 Subject: [PATCH 06/13] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 418b540..7af3f39 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "type": "library", "require": { "guzzlehttp/guzzle": "^6.2", - "laravel/framework": "^5.0" + "laravel/framework": "^6.0" }, "license": "GPL-3.0", "support": { From 4a36ff3be2e9bd0e64dfe40141d70c9f83403bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 13:31:20 -0300 Subject: [PATCH 07/13] Laravel 6.0 --- composer.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 7af3f39..2b1c275 100644 --- a/composer.json +++ b/composer.json @@ -9,8 +9,9 @@ "panel" ], "type": "library", + "minimum-stability": "dev", "require": { - "guzzlehttp/guzzle": "^6.2", + "guzzlehttp/guzzle": "^6.3", "laravel/framework": "^6.0" }, "license": "GPL-3.0", @@ -42,7 +43,5 @@ "Dashboard": "VestaAPI\\Facades\\Vesta" } } - }, - "minimum-stability": "dev", - "prefer-stable": true + } } From e848e7dd348b08a52171e1fc4df0a34af093fd57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 14:18:00 -0300 Subject: [PATCH 08/13] Hash authentication --- src/Services/VestaAPI.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Services/VestaAPI.php b/src/Services/VestaAPI.php index d573efd..6eb7602 100644 --- a/src/Services/VestaAPI.php +++ b/src/Services/VestaAPI.php @@ -97,8 +97,9 @@ public function setUserName($userName = '') public function send($cmd) { $postVars = [ - 'user' => $this->userName, - 'password' => $this->key, + //'user' => $this->userName, + //'password' => $this->key, + 'hash' => $this->key, 'returncode' => $this->returnCode, 'cmd' => $cmd, ]; From c1d9ed1936487597fdb10a7cf8d86f327b3334fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 14:25:21 -0300 Subject: [PATCH 09/13] Update composer.json --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2b1c275..3004873 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,8 @@ "panel" ], "type": "library", - "minimum-stability": "dev", + "minimum-stability": "stable", + "prefer-stable": true "require": { "guzzlehttp/guzzle": "^6.3", "laravel/framework": "^6.0" From 51ecfe1b119627bff9d44e78dbc42a842c077764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 14:27:30 -0300 Subject: [PATCH 10/13] minimum-stability --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3004873..aee42a8 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ ], "type": "library", "minimum-stability": "stable", - "prefer-stable": true + "prefer-stable": true, "require": { "guzzlehttp/guzzle": "^6.3", "laravel/framework": "^6.0" From 46a521add526dc1d27c049a1357824cf6617c2a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 14:29:21 -0300 Subject: [PATCH 11/13] Update composer.json --- composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index aee42a8..e8e9dd4 100644 --- a/composer.json +++ b/composer.json @@ -9,8 +9,7 @@ "panel" ], "type": "library", - "minimum-stability": "stable", - "prefer-stable": true, + "minimum-stability": "stable" "require": { "guzzlehttp/guzzle": "^6.3", "laravel/framework": "^6.0" From f0a68fe19aac897927a82d36c8ac222328138881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 14:29:39 -0300 Subject: [PATCH 12/13] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e8e9dd4..72a4f0e 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "panel" ], "type": "library", - "minimum-stability": "stable" + "minimum-stability": "stable", "require": { "guzzlehttp/guzzle": "^6.3", "laravel/framework": "^6.0" From 8d911d8568f325bb990d17e6918f072edb1b6830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Sun, 22 Sep 2019 14:32:12 -0300 Subject: [PATCH 13/13] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 72a4f0e..2b1c275 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "panel" ], "type": "library", - "minimum-stability": "stable", + "minimum-stability": "dev", "require": { "guzzlehttp/guzzle": "^6.3", "laravel/framework": "^6.0"