2017 © Pedro Peláez
 

library authgram-request-handler

PHP library for handling authorise request from AuthGramBot

image

devbackend/authgram-request-handler

PHP library for handling authorise request from AuthGramBot

  • Tuesday, December 12, 2017
  • by tsbgroup
  • Repository
  • 1 Watchers
  • 2 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

AuthGram authorise request handler

Overview

This is library for handling authorise request of AuthGramBot. It get raw body of POST request, parse and transform to PHP object which is ready for use in your project., (*1)

Installation

The recommended way to install the SDK is with Composer. Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project., (*2)

composer require devbackend/authgram-request-handler

If composer install globally in your system, you can run next command:, (*3)

composer require devbackend/authgram-request-handler

Alternatively, you can specify the SDK as a dependency in your project's existing composer.json file:, (*4)

{
    "require" : {
        "devbackend/authgram-request-handler": "^2.0" 
    }
}

After installing, you need to require Composer's autoloader:, (*5)

require vendor/autoload.php;

And create instance of request handler by passing to it constructor your application token:, (*6)

$requestHandler = new Devbackend\AuthGramRequestHandler\AuthGramRequestHandler('[APPLICATION_TOKEN]');

if ($requestHandler->isValidToken()) {
    $request = $requestHandler->getRequest();

    $authKey  = $request->getAuthKey();
    $user     = $request->getUser();    
    $username = $user->getUsername();
}

The Versions

12/12 2017

dev-master

9999999-dev

PHP library for handling authorise request from AuthGramBot

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Ivan Krivonos

12/12 2017

2.0.1

2.0.1.0

PHP library for handling authorise request from AuthGramBot

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Ivan Krivonos

12/12 2017

2.0.0

2.0.0.0

PHP library for handling authorise request from AuthGramBot

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Ivan Krivonos

03/03 2017

v1.0.0

1.0.0.0

PHP library for handling authorise request from AuthGramBot

  Sources   Download

MIT

by Ivan Krivonos