定制 rangkotodotcom/simanang 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

rangkotodotcom/simanang

最新稳定版本:1.0.1

Composer 安装命令:

composer require rangkotodotcom/simanang

包简介

An http client library to connect to the SIMANANG API

README 文档

README

This package is used to interact with the SIMANANG API belonging to SMAN 1 Enam Lingkung.

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

composer require rangkotodotcom/simanang

Setup

You must register the service provider :

// config/app.php

'Providers' => [
   // ...
   Rangkotodotcom\Simanang\SimanangServiceProvider::class,
]

If you want to make use of the facade you must install it as well :

// config/app.php

'aliases' => [
    // ...
    'Simanang' => Rangkotodotcom\Simanang\Simanang::class,
];

Next, You must publish the config file to define your SIMANANG CREDENTIAL :

php artisan vendor:publish --provider="Rangkotodotcom\Simanang\SimanangServiceProvider"

This is the contents of the published file :

return [

    /*
    |--------------------------------------------------------------------------
    | Simanang Mode
    |--------------------------------------------------------------------------
    |
    | By default, use development. Supported Mode: "development", "production"
    |
    */

    'simanang_mode' => env('SIMANANG_MODE', 'development'),

    /*
    |--------------------------------------------------------------------------
    | Simanang Client ID
    |--------------------------------------------------------------------------
    |
    | Client ID from SIMANANG API
    |
    */

    'simanang_client_id' => env('SIMANANG_CLIENT_ID', ''),

    /*
    |--------------------------------------------------------------------------
    | Simanang Client Secret
    |--------------------------------------------------------------------------
    |
    | Client Secret from SIMANANG API
    |
    */

    'simanang_client_secret' => env('SIMANANG_CLIENT_SECRET', ''),
];

Set your SIMANANG CREDENTIAL in .env file :

APP_NAME="Laravel"
# ...
SIMANANG_MODE=developmentOrProduction
SIMANANG_CLIENT_ID=putYourClientIdHere
SIMANANG_CLIENT_SECRET=putYourClientSecretHere

Methods Ref

  • ::getSchool()

  • ::getVision()

  • ::getMision()

  • ::getGallery()

  • ::getHeadMaster()

  • ::getCurrentSemester()

  • ::getStudent()

  • ::getTeacher()

  • ::validasiQrCode()

  • ::storeQrCode()

  • ::pushNotification()

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-29