定制 toneflix-code/fakerphp-lorem-toneflix 二次开发

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

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

toneflix-code/fakerphp-lorem-toneflix

最新稳定版本:1.0.3

Composer 安装命令:

composer require toneflix-code/fakerphp-lorem-toneflix

包简介

An alternative image provider for fakerphp using Lorem Toneflix.

README 文档

README

Latest Version on Packagist Tests Total Downloads

Introduction

Alternative image provider for fakerphp using lorem.toneflix.com.ng

Installation

You can install the package via composer in dev dependency section:

composer require --dev toneflix-code/fakerphp-lorem-toneflix

Usage

$faker = \Faker\Factory::create();
$faker->addProvider(new \ToneflixCode\FakerLoremToneflix\FakerLoremToneflixProvider($faker));

// return a string that contains a url like 'https://lorem.toneflix.com.ng/images/avatar?w=800&h=600'
$faker->imageUrl(width: 800, height: 600, category: 'avatar');

// download a properly sized image from lorem toneflix into a file with a file path like '/tmp/13b73edae8443990be1aa8f1a483bc27.jpg'
$filePath= $faker->image(dir: '/tmp', width: 640, height: 480);

Also, there are some more options :

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-09