walangkaji/litensi-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

walangkaji/litensi-api

最新稳定版本:v1.0

Composer 安装命令:

composer require walangkaji/litensi-api

包简介

Unofficial API for litensi.id

README 文档

README

Documentation

Installing

composer require walangkaji/litensi-api

Example

Please retrieve the API ID and Key from the following link: https://litensi.id/profile/api

<?php

use walangkaji\LitensiAPI\Litensi;

require __DIR__ . '/vendor/autoload.php';

$apiId  = 000;
$apiKey = 'xxxxxxxxxxxxx';

$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(...);

Run Tests

With Windows Terminal :

# 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

With Unix (bash / git bash):

Windows Terminal : install Chocolatey and install GNU Make:

# run phpunit
make test

# run psalm static analysis tool
make psalm

# run phpstan static analysis tool
make phpstan

# run php-cs-fixer for fix
make fixer-fix

# run php-cs-fixer for check without writing
make fixer-check

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-09-14