{"id":15025473,"url":"https://github.com/linkorb/userbase-client-php","last_synced_at":"2025-04-09T20:04:16.003Z","repository":{"id":32719352,"uuid":"36309101","full_name":"linkorb/userbase-client-php","owner":"linkorb","description":"UserBase Client for PHP","archived":false,"fork":false,"pushed_at":"2025-04-07T09:15:58.000Z","size":119,"stargazers_count":5,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T20:04:08.424Z","etag":null,"topics":["php-7","php-library"],"latest_commit_sha":null,"homepage":null,"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/linkorb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-26T16:31:47.000Z","updated_at":"2025-03-25T13:34:45.000Z","dependencies_parsed_at":"2022-09-12T03:21:49.105Z","dependency_job_id":null,"html_url":"https://github.com/linkorb/userbase-client-php","commit_stats":null,"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fuserbase-client-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fuserbase-client-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fuserbase-client-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fuserbase-client-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkorb","download_url":"https://codeload.github.com/linkorb/userbase-client-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"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":["php-7","php-library"],"created_at":"2024-09-24T20:02:24.984Z","updated_at":"2025-04-09T20:04:15.988Z","avatar_url":"https://github.com/linkorb.png","language":"PHP","readme":"\u003e [!WARNING]\n\u003e This is a read-only repository used to release the subtree. Any issues and pull requests should be forwarded to the\n\u003e upstream [Nebula repository](https://github.com/linkorb/nebula).\n\n\nUserbase client for PHP\n=======================\n\n## About Userbase\n\nUserbase is a micro-service with a REST/JSON API that manages users, organizations and api keys.\n\nA Userbase Client can make calls to a Userbase Server authenticate users, get account details, etc.\n\n## Usage\n\n### Instantiate the client\n\nInstantiate a new client object:\n\n```php\n$url = 'https://joe:secret@userbase.example.com';\n$client = new Client($url);\n```\nThe provided credentials need to have \"Admin\" privileges on the Userbase Server.\n\n### Check credentials\n\n```php\nif (!$client-\u003echeckCredentials('alice', 'shhhh')) {\n  exit('Invalid credentials');\n}\necho 'Welcome back!';\n```\n\n## Testing/Development\n\nThe `examples/` directory contains a few example scripts that you can use during testing and development.\n\nFirst, copy the `.env.dist` file to `.env`. Edit the contents to match your Userbase server and credentials.\n\n```bash\ncp .env.dist .env e\nedit .env # Edit configuration, database settings etc\n ./vendor/bin/envoi validate  # Run command validate based on meta file .env.yaml\n```\n\nThen you can simply execute the examples like this:\n\n    php examples/checkcredentials.php alice sshhh\n\nPlease refer to the `examples/` directory for other examples.\n\n## Integrations\n\n### Silex\n\nA Silex Provider is available [here](https://github.com/linkorb/silex-provider-userbase-client)\n\n### Symfony\n\nA Symfony bundle can be found [here](https://github.com/linkorb/userbase-client-bundle).\nIt works with Symfony 4 and 5 projects.\n\n## License\n\nMIT. Please refer to the [license file](LICENSE) for details.\n\n## Brought to you by the LinkORB Engineering team\n\n\u003cimg src=\"http://www.linkorb.com/d/meta/tier1/images/linkorbengineering-logo.png\" width=\"200px\" /\u003e\u003cbr /\u003e\nCheck out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).\n\nBtw, we're hiring!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fuserbase-client-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkorb%2Fuserbase-client-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fuserbase-client-php/lists"}