From 139a3911e57039fd948ff112ec728634cd0fe3d9 Mon Sep 17 00:00:00 2001 From: envoyr Date: Tue, 18 Jan 2022 17:49:44 +0100 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index baa5e7c..c3df2d9 100644 --- a/README.md +++ b/README.md @@ -2,19 +2,27 @@ API Wrapper for Froxlor. +## Installation + +You can install it via composer: + +```console +$ composer require envoyr/php-froxlor-client +``` + ## How to use -```` +```php $froxlor = new \Envoyr\Froxlor\Server([ 'host' => 'https://froxlor.example.com', 'key' => '', 'secret' => '' ]); -```` +``` ### Customer -```` +```php $response = $froxlor ->customers ->create([ @@ -29,16 +37,16 @@ $response = $froxlor 'api_allowed' => false, 'createstdsubdomain' => true, ]); -```` +``` ### Email -```` +```php $response = $froxlor ->customer('example') ->email('hello@example.com') ->attributes; -```` +``` ### Info