承接 opensistemas-hub/cert-generator 相关项目开发

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

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

opensistemas-hub/cert-generator

最新稳定版本:0.1.5

Composer 安装命令:

composer require opensistemas-hub/cert-generator

包简介

Make Certs (PDF) from templates (PDF)

README 文档

README

Build Status codecov

Example usage:

<?php

require_once __DIR__ . '/vendor/autoload.php'; // Autoload files using Composer autoload


$vars = [
    'full_name'   => "Antonio Cortés",
    'course_name' => "Mi nombre de curso",

];

$settings = json_decode( __DIR__ . '/template1.json' , true );

$template = \Opensistemas\CertGenerator\Template::create( $settings, __DIR__ . '/test.pdf' ) ;

$template->generate( 'my.pdf', $vars  );

template1.json

{
  "pages": [
    {
      "template": {
        "page": 1
      },
      "elements": [
        {
          "type": "text",
          "x": 20,
          "y": 50,
          "value": "Hola Mundo",
          "font": {
            "size": 20,
            "color": "#cc0000"
          }
        },
        {
          "type": "text",
          "x": 20,
          "y": 70,
          "value": {
            "key": "course_name"
          },
          "font": {
            "size": 20,
            "color": "#cc0000"
          }
        },
        {
          "type": "textBox",
          "x": 10,
          "y": 100,
          "w": 190,
          "h": 30,
          "align": "C",
          "value": {
            "key": "full_name"
          },
          "font": {
            "size": 34,
            "color": "#00CC00"
          }
        }
      ]
    },
    {
      "template": {
        "page": 2
      },
      "elements": [
        {
          "type": "textBox",
          "x": 10,
          "y": 100,
          "w": 280,
          "h": 30,
          "align": "C",
          "value": {
            "key": "full_name"
          },
          "font": {
            "size": 34,
            "color": "#102030",
            "bg": "#ffffff"
          }
        }
      ]
    }
  ]
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2019-06-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固