定制 dvillodres/image-generator 二次开发

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

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

dvillodres/image-generator

最新稳定版本:v1.0.0

Composer 安装命令:

composer require dvillodres/image-generator

包简介

Generate images from images and text.

README 文档

README

image-generator is a Composer package that allows you to generate images by overlaying text onto an image using a provided image URL and text.

Usage

Installation

You can install the package via Composer. Run the following command:

composer require dvillodres/image-generator

Code example

use DVillodres\ImageGenerator\Image;
use DVillodres\ImageGenerator\ImageConfig;

Image::create(
    ImageConfig::postCover(
        $this->imgDir . '/test-' . time() . '.jpg',
        'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
        'example.com',
        color: '#ffffff',
        textColor: '#55b8ff',
        imgURL: 'https://images.pexels.com/photos/792416/pexels-photo-792416.jpeg'
    )
);

Contributing

Contributions are welcome! Please feel free to submit a pull request.

Acknowledgements

I want to extend my heartfelt gratitude to Dantsu for his invaluable contribution to the world of development, particularly for his outstanding package php-image-editor. Before creating this project, I relied on his package as an essential part of our workflow.

Dantsu's work provided a robust foundation and inspired us to create a simplified version tailored to our specific needs. We appreciate his dedication and effort in crafting and maintaining such a valuable project.

Thank you, Dantsu, for being a source of inspiration for the development community!

Note: This project was inspired by the work of Dantsu/php-image-editor before evolving into a simplified version for our specific requirements.

Author: Daniel Villodres | Personal Website: d-v.es

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-04