{"id":17989475,"url":"https://github.com/evilfreelancer/bookeo-api-php","last_synced_at":"2025-03-25T23:30:44.292Z","repository":{"id":46104879,"uuid":"207251347","full_name":"EvilFreelancer/bookeo-api-php","owner":"EvilFreelancer","description":"Bookeo API PHP7 client","archived":false,"fork":false,"pushed_at":"2021-11-15T05:48:01.000Z","size":102,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-20T22:09:20.327Z","etag":null,"topics":["api","api-client","bookeo","bookeo-api","php7","restful"],"latest_commit_sha":null,"homepage":"https://www.bookeo.com/api/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvilFreelancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"efreelancer"}},"created_at":"2019-09-09T07:34:18.000Z","updated_at":"2022-02-12T13:50:48.000Z","dependencies_parsed_at":"2022-08-27T03:23:27.109Z","dependency_job_id":null,"html_url":"https://github.com/EvilFreelancer/bookeo-api-php","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fbookeo-api-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fbookeo-api-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fbookeo-api-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fbookeo-api-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvilFreelancer","download_url":"https://codeload.github.com/EvilFreelancer/bookeo-api-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245561123,"owners_count":20635678,"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":["api","api-client","bookeo","bookeo-api","php7","restful"],"created_at":"2024-10-29T19:14:46.299Z","updated_at":"2025-03-25T23:30:41.960Z","avatar_url":"https://github.com/EvilFreelancer.png","language":"PHP","funding_links":["https://patreon.com/efreelancer"],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/evilfreelancer/bookeo-api-php/v/stable)](https://packagist.org/packages/evilfreelancer/bookeo-api-php)\n[![Build Status](https://travis-ci.org/EvilFreelancer/bookeo-api-php.svg?branch=master)](https://travis-ci.org/EvilFreelancer/bookeo-api-php)\n[![Total Downloads](https://poser.pugx.org/evilfreelancer/bookeo-api-php/downloads)](https://packagist.org/packages/evilfreelancer/bookeo-api-php)\n[![License](https://poser.pugx.org/evilfreelancer/bookeo-api-php/license)](https://packagist.org/packages/evilfreelancer/bookeo-api-php)\n[![Code Climate](https://codeclimate.com/github/EvilFreelancer/bookeo-api-php/badges/gpa.svg)](https://codeclimate.com/github/EvilFreelancer/bookeo-api-php)\n[![Code Coverage](https://scrutinizer-ci.com/g/EvilFreelancer/bookeo-api-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/EvilFreelancer/bookeo-api-php/?branch=master)\n[![Scrutinizer CQ](https://scrutinizer-ci.com/g/evilfreelancer/bookeo-api-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/evilfreelancer/bookeo-api-php/)\n\n# Bookeo API PHP7 client\n\n    composer require evilfreelancer/bookeo-api-php\n\n## Laravel framework support\n\nBookeo API client is optimized for usage as normal Laravel package, all functional is available via `\\BookeoApi` facade,\nfor access to client object you need instead:\n\n```php\n$config = new \\Bookeo\\Config([\n    'api_key'    =\u003e 'my-api-key',\n    'secret_key' =\u003e 'my-secret-key'\n]);\n$bookeo = new \\Bookeo\\Client($config);\n```\n\nUse:\n\n```php\n$bookeo = \\BookeoApi::getClient();\n```\n\nYou also may provide additional parameters to your client by passing array of parameters to `getClient` method:\n\n```php\n$bookeo = \\BookeoApi::getClient([\n    'api_key'    =\u003e 'my-api-key',\n    'secret_key' =\u003e 'my-secret-key'\n]);\n```\n\n### Laravel installation\n\nInstall the package via Composer:\n\n    composer require evilfreelancer/bookeo-api-php\n\nBy default the package will automatically register its service provider, but\nif you are a happy owner of Laravel version less than 5.3, then in a project, which is using your package\n(after composer require is done, of course), add into`providers` block of your `config/app.php`:\n\n```php\n'providers' =\u003e [\n    // ...\n    Bookeo\\Laravel\\ClientServiceProvider::class,\n],\n```\n\nOptionally, publish the configuration file if you want to change any defaults:\n\n    php artisan vendor:publish --provider=\"Bookeo\\\\Laravel\\\\ClientServiceProvider\"\n\n\n## How to use\n\n```php\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nuse \\Bookeo\\Client;\nuse \\Bookeo\\Models\\MatchingSlotsSearchParameters;\n\n$bookeo = new Client([\n    'secret_key' =\u003e 'xxxxxxx',\n    'api_key'    =\u003e 'xxxxxxxxxxxxxxxx'\n]);\n\n$result = $bookeo-\u003eavailability-\u003eslots(null, '2019-09-16T00:00:00Z', '2019-09-18T23:59:59Z')-\u003eexec();\nprint_r($result);\n\n$search = new MatchingSlotsSearchParameters();\n$search-\u003eproductId = 'unique-id-of-product';\n\n$result = (string) $bookeo-\u003eavailability-\u003ematching_slots-\u003esearch($search)-\u003eexec();\nprint_r($result);\n\n$result = (string) $bookeo-\u003eavailability-\u003ematching_slots('pageNavigationToken', 1)-\u003eexec();\nprint_r($result);\n````\n\n# Links\n\n* https://www.bookeo.com/apiref/index.html\n* https://www.bookeo.com/api/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilfreelancer%2Fbookeo-api-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilfreelancer%2Fbookeo-api-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilfreelancer%2Fbookeo-api-php/lists"}