{"id":21878269,"url":"https://github.com/pepabo/muumuu.php","last_synced_at":"2025-04-15T03:03:57.005Z","repository":{"id":57022240,"uuid":"128358665","full_name":"pepabo/muumuu.php","owner":"pepabo","description":"🐘 API Client for MuumuuDomain.","archived":false,"fork":false,"pushed_at":"2019-10-10T08:51:20.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-28T14:43:15.850Z","etag":null,"topics":["client","muumuu-domain","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pepabo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-06T06:46:03.000Z","updated_at":"2019-10-10T08:44:11.000Z","dependencies_parsed_at":"2022-08-23T12:20:45.558Z","dependency_job_id":null,"html_url":"https://github.com/pepabo/muumuu.php","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fmuumuu.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fmuumuu.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fmuumuu.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fmuumuu.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepabo","download_url":"https://codeload.github.com/pepabo/muumuu.php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248776035,"owners_count":21159705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","muumuu-domain","php"],"created_at":"2024-11-28T08:12:08.470Z","updated_at":"2025-04-15T03:03:56.963Z","avatar_url":"https://github.com/pepabo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# muumuu.php\n\nAPI Client for MuumuuDomain.\n\n[![Build Status](https://travis-ci.org/pepabo/muumuu.php.svg?branch=master)](https://travis-ci.org/pepabo/muumuu.php)\n\n## Installation\n\n```console\n$ composer require muumuu-domain/muumuu.php\n```\n\n## Usage\n\n```php\n\u003c?php\nrequire_once 'vendor/autoload.php';\n\nMuumuu\\Client::configure([\n    'endpoint' =\u003e 'MUUMUU DOMAIN API ENDPOINT',\n]);\n\n$client = new Muumuu\\Client();\n$response = $client-\u003egetDomainMaster();\n\n$response-\u003estatusCode();  // 200\n$response-\u003ebody();        // JSON body\n```\n\nPossible to specify it with constructor arguments.\n\n```php\n\u003c?php\n$client = new Muumuu\\Client([\n    'endpoint' =\u003e 'MUUMUU DOMAIN API ENDPOINT',\n]);\n$response = $client-\u003egetDomainMaster();\n$response-\u003ebody();\n```\n\nAuthentication with JWT.\n\n```php\n\u003c?php\n$client = new Muumuu\\Client();\nif ($client-\u003eauthenticate('id' /* muumuu id */, 'password' /* login password */)) {\n    $client-\u003egetCarts();\n}\n\n// get token\n$client = new Muumuu\\Client();\nif ($client-\u003eauthenticate('id', 'password')) {\n    $token = $client-\u003egetToken();\n}\n\n// set token\n$client = new Muumuu\\Client();\n$client-\u003esetToken($token);\n$client-\u003egetCarts();\n```\n\n### Support APIs\n\n```php\n\u003c?php\n$client = new Muumuu\\Client();\n\n// authenticate\n$client-\u003eauthenticate('id', 'password');  // POST /authenticate\n$client-\u003eme();                            // GET /me\n\n// without authentication\n$client-\u003egetDomainMaster();               // GET /domain_master\n\n// required authentication\n$client-\u003egetCarts();                      // GET /carts\n$client-\u003ecalculate([]);                   // POST /calculate\n$client-\u003ecreateWordpress([]);             // POST /wordpress\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fmuumuu.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepabo%2Fmuumuu.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fmuumuu.php/lists"}