PHPackages                             rijosh/podio-auth - 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. rijosh/podio-auth

ActiveLibrary

rijosh/podio-auth
=================

Podio authentication including rate-limit controlling

1.3.9(6y ago)12122MITPHP

Since Jul 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/rijoshrc/podio-auth)[ Packagist](https://packagist.org/packages/rijosh/podio-auth)[ RSS](/packages/rijosh-podio-auth/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (22)Used By (0)

Laravel-Podio Auth
==================

[](#laravel-podio-auth)

Laravel-Podio library which includes

- [Username and password flow](https://developers.podio.com/authentication/username_password)
- [App authentication flow](https://developers.podio.com/authentication/app_auth)
- Podio API library
- Podio rate-limit handling
- Podio app hook handling

### Prerequisites

[](#prerequisites)

- php: ^5.3.0
- laravel/framework: ^5.2
- podio/podio-php: ^4.3

### Installing

[](#installing)

1. Install package

    ```
    composer require rijosh/podio-auth

    ```
2. Include the `PodioAuthServiceProvider` in `config/app.php` provider list

    ```
    PodioAuth\PodioAuthServiceProvider::class

    ```
3. Create config file `podio.php` and add the following code:

    ```
    return [
        /**
         * Podio username and password.
         * This will be using for user authentication (Username and password flow).
         */
        'username' => '',
        'password' => '',

        /**
         * Include Podio apps details here.
         * This will be using for app authentication (App authentication flow).
         * List the type of hooks if needed.
         */
        'app_auth' => [
            'app_name' => [
                'app_id' =>,
                'app_secret' => '',
                'hook_types' => []
            ],
        ],

        /**
         * Include multiple API Keys here.
         * This is using for rate-limit handling.
         */
        'client_api' => [
            [
                'id' => '',
                'secret' => '',
            ],
        ]
    ];

    ```
4. Update `podio.php` with configuration data.
5. Run the following commands

    ```
    * php artisan podio:init

    ```

    This will generate the required tables and sync the api from config.

Code Examples
-------------

[](#code-examples)

Use package library for authentication and Podio API

```
