PHPackages                             californiamountainsnake/longmantelegrambot-laravel-api-auth-system - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. californiamountainsnake/longmantelegrambot-laravel-api-auth-system

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

californiamountainsnake/longmantelegrambot-laravel-api-auth-system
==================================================================

This is the laravel api auth system intended for the longman/telegram-bot

1.3.0(6y ago)061MITPHPPHP ^7.2

Since Jul 24Pushed 6y agoCompare

[ Source](https://github.com/CaliforniaMountainSnake/longmantelegrambot-laravel-api-auth-system)[ Packagist](https://packagist.org/packages/californiamountainsnake/longmantelegrambot-laravel-api-auth-system)[ RSS](/packages/californiamountainsnake-longmantelegrambot-laravel-api-auth-system/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (7)Versions (14)Used By (0)

longmantelegrambot-laravel-auth-system
======================================

[](#longmantelegrambot-laravel-auth-system)

This is the laravel api auth system intended for the longman/telegram-bot library. Important! This library uses the [californiamountainsnake/simple-laravel-auth-system](https://github.com/CaliforniaMountainSnake/simple-laravel-auth-system) library, you must install and config one first.

Install:
--------

[](#install)

### Require this package with Composer

[](#require-this-package-with-composer)

Install this package through [Composer](https://getcomposer.org/). Edit your project's `composer.json` file to require `californiamountainsnake/longmantelegrambot-laravel-api-auth-system`:

```
{
    "name": "yourproject/yourproject",
    "type": "project",
    "require": {
        "php": "^7.2",
        "californiamountainsnake/longmantelegrambot-laravel-api-auth-system": "*"
    }
}
```

and run `composer update`

### or

[](#or)

run this command in your command line:

```
composer require californiamountainsnake/longmantelegrambot-laravel-api-auth-system
```

Usage:
------

[](#usage)

1. Extend the abstract classes `AuthTelegrambotUserEntity` and `AuthTelegrambotUserRepository`.
2. Include the `AuthBotAccessUtils`, `AuthApiUtils` and `AuthUserUtils` traits into your base Command class and realise the abstract methods. Set the correct return type hints in the phpdoc for the methods `getUserEntity()`, `getUserRole()` and `getUserAccountType()`.

```
