1. Go to this page and download the library: Download walangkaji/litensi-api 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/ */
walangkaji / litensi-api example snippets
use walangkaji\LitensiAPI\Litensi;
$litensi = new Litensi($apiId, $apiKey);
// Get profile
$profile = $litensi->profile();
// API Social Media
$socialMedia = $litensi->socialMedia();
$service = $socialMedia->services();
$order = $socialMedia->order(...);
$status = $socialMedia->status(...);
// API SMS Activation
$sms = $litensi->sms();
$countries = $sms->countries();
$services = $sms->services();
$operators = $sms->operators();
$prices = $sms->prices();
$order = $sms->order(...);
$getStatus = $sms->getStatus(...);
$setStatus = $sms->setStatus(...);
// API Email Activation
$mail = $litensi->mail();
$prices = $mail->prices(...);
$order = $mail->order(...);
$getStatus = $mail->getStatus(...);
$setStatus = $mail->setStatus(...);
$reOrder = $mail->reOrder(...);
sh
# run phpunit
php vendor/bin/phpunit
# run psalm static analysis tool
php vendor/bin/psalm
# run phpstan static analysis tool
php vendor/bin/phpstan
# run php-cs-fixer for fix
php vendor/bin/php-cs-fixer fix --diff
# run php-cs-fixer for check without writing changes
php vendor/bin/php-cs-fixer fix --diff --dry-run
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.