tienhm7 / auth
The package is used to authentication
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/tienhm7/auth
Requires
- php: >=7.1.3
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- lcobucci/jwt: ^4.1 || ^4.0 || ^3.4.6
- nguyenanhung/database: ^3.0 || ^2.0
- nguyenanhung/helpers: ^3.0 || ^2.0
- nguyenanhung/monitor: ^3.0 || ^2.0
- nguyenanhung/my-cache: ^3.0 || ^2.0
- nguyenanhung/my-debug: ^3.0 || ^2.0
- nguyenanhung/requests: ^3.0 || ^2.0
- nguyenanhung/security: ^3.0 || ^2.0
- nguyenanhung/validation: ^1.0
Requires (Dev)
- nguyenanhung/image: ^3.0 || ^2.0
- nguyenanhung/mailer-sdk: ^3.0
- nguyenanhung/seo: ^3.0 || ^2.0
- nguyenanhung/upload: ^2.0
- tramtro/make-some-noise: ^1.0
This package is not auto-updated.
Last update: 2025-10-29 16:03:57 UTC
README
Auth Package
Simple package for registration and login
Use Package
// Add package to composer
composer require tienhm7/auth
// Intergrate to Framework
Example Laravel
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use tienhm\Backend\Auth\Http\WebServiceAccount;
class AuthController extends Controller
{
    private WebServiceAccount $module;
    public function __construct()
    {
        parent::__construct();
        $this->module = (new WebServiceAccount($this->config['OPTIONS']))->setSDKConfig($this->config);
    }
    public function login(Request $request)
    {
        $data = $request->only('user', 'password');
        $api = $this->module;
        $api->setInputData($data)
            ->login();
        return $api->getResponse();
    }
    public function register(Request $request)
    {
        $data = $request->only('username', 'fullname', 'email', 'password', 'confirm_password', 'phone');
        $api = $this->module;
        $api->setInputData($data)
            ->register();
        return $api->getResponse();
    }
}
Contact & Support
If any question & request, please contact following information
| Name | Skype | ||
|---|---|---|---|
| Hoang Manh Tien | tienhm@beetsoft.com.vn | conthuyendocmoc_a888 | @tiencntt2 | 
From Vietnam with Love <3