PHP code example of alamb / auth-service
1. Go to this page and download the library: Download alamb/auth-service library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
alamb / auth-service example snippets
'providers'=> [
...
\Alamb\AuthService\AuthProvider::class,
]
public function test()
{
$response=app('authService')->getResponse(
'POST', //请求类型
'http://new.alamb.com/login', //请求连接
[ //请求数据
'password'=>"1234567",
'phone'=>'13435439932',]
);
dump($response);
}