Download the PHP package nhanchaukp/tempmail-edu-php without Composer
On this page you can find all versions of the php package nhanchaukp/tempmail-edu-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nhanchaukp/tempmail-edu-php
More information about nhanchaukp/tempmail-edu-php
Files in nhanchaukp/tempmail-edu-php
Download nhanchaukp/tempmail-edu-php
More information about nhanchaukp/tempmail-edu-php
Files in nhanchaukp/tempmail-edu-php
Vendor nhanchaukp
Package tempmail-edu-php
Short Description PHP SDK for TempMail.Id.Vn API (edu)
License MIT
Package tempmail-edu-php
Short Description PHP SDK for TempMail.Id.Vn API (edu)
License MIT
Please rate this library. Is it a good library?
Informations about the package tempmail-edu-php
Tempmail Edu PHP SDK (nhanchaukp/tempmail-edu-php)
A lightweight PHP SDK for TempMail.Id.Vn API to make integration simple and composer-installable.
Yêu cầu:
- PHP 8.0+
- Composer
Cài đặt:
Nếu bạn muốn dùng .env để cung cấp access token (không cần gọi login):
-
Cài phpdotenv (nếu chưa có):
-
Tạo file
.envtrong project của bạn (ví dụ copy .env.example): -
Trong mã ứng dụng, trước khi tạo client, load .env:
- Sử dụng client bình thường — nếu biến môi trường
TEMPMail_ACCESS_TOKENđược đặt, SDK sẽ tự động đính kèm header Authorization: Bearervào các request, bạn không cần gọi login:
Ghi chú:
- Token từ
.envsẽ được dùng tự động nếu có. - Bạn vẫn có thể gọi
$client->login($email, $password)để lấy token và SDK sẽ tự động lưu token cho các request tiếp theo. - Bạn có thể đặt token thủ công bằng
$client->setAccessToken('...').
Ví dụ đầy đủ: xem examples/example.php.
All versions of tempmail-edu-php with dependencies
PHP Build Version
Package Version
The package nhanchaukp/tempmail-edu-php contains the following files
Loading the files please wait ...