{"id":19004243,"url":"https://github.com/oneall/php-sdk","last_synced_at":"2025-06-25T07:33:45.871Z","repository":{"id":23090606,"uuid":"26444531","full_name":"oneall/php-sdk","owner":"oneall","description":"PHP SDK for OneAll ","archived":false,"fork":false,"pushed_at":"2020-06-14T19:35:39.000Z","size":3098,"stargazers_count":16,"open_issues_count":1,"forks_count":21,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-17T10:23:41.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.oneall.com/api/","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/oneall.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-11-10T16:21:54.000Z","updated_at":"2024-08-12T19:15:18.000Z","dependencies_parsed_at":"2022-08-19T00:52:52.344Z","dependency_job_id":null,"html_url":"https://github.com/oneall/php-sdk","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneall%2Fphp-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneall%2Fphp-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneall%2Fphp-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneall%2Fphp-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oneall","download_url":"https://codeload.github.com/oneall/php-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250296834,"owners_count":21407100,"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":[],"created_at":"2024-11-08T18:22:25.020Z","updated_at":"2025-04-22T18:29:23.428Z","avatar_url":"https://github.com/oneall.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"OneAll PHP SDK\n==============\n\nThe SDK allows you to communicate with the OneAll API using PHP. It implements all API features through a curl or socket (FSockOpen) client. Implementation examples are available in the [oneall/php-api-examples](https://github.com/oneall/php-api-examples) repository.\n\n## Getting Started\n\n\n### Prerequisites\n\n* A webserver with PHP \u003e=5.4\n* A free OneAll [account](app.oneall.com) and a site. You will need the site's **subdomain**, **public key** and **private key**.\n\n### Installing\n\n\u003e composer require \"oneall/php-sdk:~2.0\"\n\n### Testing\n\n\u003e ./vendor/bin/phpunit tests/unit --coverage-html tests/results/unit\n\n\nUsing our PHP-SDK\n-----------------\n\nThe PHP-SDK is composed of\n* PHP clients (curl \u0026 FSockOpen) \u0026 a builder\n* Apis object to use our differents endpoints.\n* An ApiContainer containing all Apis object.\n\n### Get you configuration\n\nIn order to use the PHP-SDK, you'll need your application credentials you can find on [our website](app.oneall.com).\n\n    $subDomain = 'your-subdomain';\n    $sitePublicKey = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';\n    $sitePrivateKey = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';\n\n### Create the client\n\nFirst, you'll have to create a php client which contains the previous credentials. You can choose between *curl or \n*fsockopen*, depending on your system.\ndamie\n    // create the client through our builder\n    $builder = new Oneall\\Client\\Builder();\n    $client = $builder-\u003ebuild('curl', $subDomain, $sitePublicKey, $sitePrivateKey);\n    \n    // Or build it directly\n    $curlClient = new \\Oneall\\Client\\Adapter\\Curl($subDomain, $sitePublicKey, $sitePrivateKey);\n\n### Use our API objects\n\nFinally, instantiate the ApiObject you need (checkout our [api documentation](http://docs.oneall.com/api/resources/)\nfor more details). Each ApiObject needs the client in order to interact (and automatically log in) with ours services.\n\n    $connectionApi = new \\Oneall\\Api\\Apis\\Connection($client);\n    $connections = $api-\u003egetConnectionApi()-\u003egetAll();\n\nYou may use our ApiContainer to ease their instantiation.\n\n    $api = new \\Oneall\\OneallApi($client);\n    $connections = $api-\u003egetConnectionApi()-\u003egetAll();\n\nFor example, if you want to publish a message on Twitter.\n\n    $api = new \\Oneall\\OneallApi($client);\n    $twitter_api = $api-\u003egetProviderApi()-\u003egetProviderApi('twitter');\n    $twitter_api-\u003epublish($identity_token, $message);\n    \n\nDocumentation\n-------------\n\nMore inforation on our [documentation](http://docs.oneall.com/api/resources/). \n\nHere is a [step-by-step documetation](http://docs.oneall.com/services/implementation-guide/) for implementing our \nSocial Login, Social Link and Single Sign-On services on a website that already has users with accounts.\n\n\nLicense\n-------\n\n**GNU General Public License**, available at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneall%2Fphp-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneall%2Fphp-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneall%2Fphp-sdk/lists"}