ghorbannezhad/fact 问题修复 & 功能扩展

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

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

ghorbannezhad/fact

Composer 安装命令:

composer require ghorbannezhad/fact

包简介

This is the fact generator package

README 文档

README

Fact generator is a simple laravel package which generate fact image. You only need to define your desired image, logo and text to generate sample fact image. It support English and Persian.

Install

1- Install the package with composer

composer require --dev ghorbannezhad/fact

2- Publish config file

php artisan vendor:publish --provider="Ghorbannezhad\Fact\FactServiceProvider"

Usage

1- Add service provider to config/app.php

'providers' => [
    ...
    Ghorbannezhad\Fact\FactServiceProvider::class,
]

2- Call fact facade in controller

    $image = public_path('/address/to/image.jpg');
    $text= 'Lorem ipsum';
    $fact = FactFacade::create($image,$text);

3- Set language and font in config file

return [
    'logo'=>$logo,
    'style'=>[
        'margin_top'=>10,        //in percent
        'margin_left'=>10,      //in percent
        'margin_bottom'=>10,   //in percent
        'margin_right'=>10,   //in percent
        'font_size'=>24,
        'line_height'=>50,
        'logo_from_bottom'=> 10,  //in percent
        'font'=>$font,
        'text_align'=>'center' //supported: center|right|left
    ],
    'lang'=>'fa', //supported: fa | en
    'save_path'=>$save_path,

];

Contributers

License

FactGenerator is licensed under the MIT License - see the LICENSE file for details

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固