{"repo":"symfonycorp/connect","free":true,"listed":false,"github":"https://github.com/symfonycorp/connect","clone":"git clone https://github.com/symfonycorp/connect.git","description":"The SymfonyConnect official API SDK","language":"PHP","stars":92,"topics":["php","sdk","authentication","oauth","symfony","connect"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"SymfonyConnect SDK About This is the official SDK for the SymfonyConnect API. It works for the public API or with a registered OAuth application. To register an application, please go to your SymfonyConnect Account. Installation To install the SDK, run the command below and you will get the latest version: Usage OAuth To use the SDK in a Symfony application, we recommend using the built-in bundle. Otherwise, you can take inspiration from the following part, which will show you how to include OAuth authentication within a Silex App. Warning: We take for granted that you already have registered your app on SymfonyConnect and that you're in possession of your application id , application secret and scope . 1. Configure your silex app with the data we gave us at app registration. This done. We can now move on to the second step. 2. We need to create two controllers to handle the OAuth2 Three-Legged workflow. The first controller goal is to redirect the user to SymfonyConnect in order to ask him for the authorization that your app will use his data. This controller will be bound to the connect auth route. In your template, you'll need to create a link to this route. The second controller is the one that will welcome the user after SymfonyConnect redirected him to your application. When registering your client, you'll have to provide the exact absolute URL that points to this controller. 3. Create a link from your template In a template, you can use the following snippet of code to","default_branch":null,"files":null,"tree":[],"storefront":"/r/symfonycorp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/symfonycorp/connect/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}