schneiderchristopher/faker-crypto-php
最新稳定版本:1.0.0
Composer 安装命令:
composer require schneiderchristopher/faker-crypto-php
包简介
Faker crypto related for FakerPHP
README 文档
README
Faker Crypto PHP is a third-party library for Faker PHP that provides additional methods for generating cryptocurrency-related data. This library creates mock data realated with cryptocurrency.
Installation
You can install the library using Composer. Run the following command in your terminal:
composer require schneiderchristopher/faker-crypto-php
Usage
To use this with Faker, you must add the FakerCryptoPHP\Crypto class to the Faker generator:
<?php $faker = \Faker\Factory::create(); $faker->addProvider(new \FakerCryptoPHP\Provider\en_US\Crypto($faker)); $faker->cryptoCode(); // Returns a fake coin code eg: (BTC, ETH) $faker->cryptoCoinName(); // Returns a fake coin name eg: (Dogecoin, Solana)
Contribution
Feel free to submiting a PR with your language and possible improvements.
Don't forget to run your tests before submitting a PR.
Credits
https://github.com/jzonta/FakerRestaurant - Most of this repo was based on this.
https://github.com/FakerPHP/Faker - For continuing with Faker.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-04