PHPackages                             breadbutter/breadbutter-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. breadbutter/breadbutter-php

ActiveLibrary[API Development](/categories/api)

breadbutter/breadbutter-php
===========================

BreadButter PHP API SDK

6.0.0(3y ago)2744210PHP

Since Aug 17Pushed 3y agoCompare

[ Source](https://github.com/breadbutter/breadbutter-php)[ Packagist](https://packagist.org/packages/breadbutter/breadbutter-php)[ RSS](/packages/breadbutter-breadbutter-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

The official PHP library for Bread &amp; Butter
-----------------------------------------------

[](#the-official-php-library-for-bread--butter)

This library allows you to connect your application to the authentication process of Bread &amp; Butter. A user will be redirected to your application when a user is authenticated. Once this authentication is retrieved by your application you can perform an action like creating a user in your system or creating a session for that users.

### Installation

[](#installation)

```
composer require breadbutter/breadbutter-php

```

API
---

[](#api)

> For more information on the full **DIY Quick Start Guide** visit

Once the user's authentication is processed on by Bread &amp; Butter, the user is redirected to a callback interface defined in your Bread &amp; Butter app. The example below is a simple interface that accepts the request from Bread &amp; Butter and processes the authentication.

> After the the interface is created you will need to update the Callback URL with the URL to this interface in your app settings here:

### Processing an authentication request

[](#processing-an-authentication-request)

*Create a new instance of `BreadButterClient`*

- `APP_ID` can be found in
- `APP_SECRET` is configured at

```
