taavi / faker-acceptlanguage
a Faker provider for generating HTTP Accept-Language headers
1.0.0
2020-12-06 18:39 UTC
Requires
- php: ^7.3|^8.0
- fakerphp/faker: ^1.12
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-01-07 03:06:49 UTC
README
This package provides a Faker provider that can be used to generate sample Accept-Language
HTTP headers.
Installing
Install the package from composer
composer require taavi/faker-acceptlanguage
Use
use Faker\Factory; use Taavi\FakerAcceptLanguage\AcceptLanguageFakerProvider; $faker = Factory::create(); $faker->addProvider(new AcceptLanguageFakerProvider($faker)); echo $faker->acceptLanguage;
License
- MIT