承接 carminerumma/yousign-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

carminerumma/yousign-laravel

Composer 安装命令:

composer require carminerumma/yousign-laravel

包简介

Package for using Yousign Api with Laravel > 7.x

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

It's a library for Laravel 7 and PHP7 Not tested on previous version.

Library to use YouSign API from doc (dev.yousign.com) with Laravel

Installation

You can install the package via composer:

composer require carminerumma/yousign-laravel

The service provider will automatically register itself.

You must publish the config file with:

php artisan vendor:publish --provider="CarmineRumma\YousignLaravel\YousignServiceProvider" --tag="config"

This is the contents of the config file that will be published at config/yousign.php:

return [
    'api_key' => env('YOUSIGN_API_KEY'),
    'api_env' => env('YOUSIGN_API_ENV', 'production'), // ['production', 'staging']
];

Usage

Users

Lists all users:

use CarmineRumma\YousignLaravel\YousignLaravel;

$users = YousignLaravel::getUsers();

Procedure

Send a file:

use CarmineRumma\YousignLaravel\YousignLaravel;

$file = YousignLaravel::createFile([
    "name" => "devis.pdf",
    "content" => "JVBERi0xLjUKJb/3ov4KNiA...",
]);

Create a procedure: The creation of a procedure is fully dynamic, you can add multiple members and multiple files.

use CarmineRumma\YousignLaravel\YousignLaravel;

$file = YousignLaravel::createFile([
    "name" => "devis.pdf",
    "content" => "JVBERi0xLjUKJb/3ov4KNiA...",
]);

$procedure = new YousignProcedure();
$procedure
    ->withName("My procedure")
    ->withDescription("The description of my procedure")
    ->addMember([
        'firstname' => "Alexis",
        'lastname' => "Riot",
        'email' => "contact@alexisriot.fr",
        'phone' => "+33 600000000",
    ], [$file])
    ->send();

License

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

Creator

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-26