cheddzy / tf2-faker
Team Fortress 2 Weapon Faker, made with Laravel Factories in mind.
0.0.3
2024-12-13 22:30 UTC
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
README
Package that helps you return random Team Fortress 2 names of weapons in factories.
Installation
You can install the package via composer:
composer require cheddzy/tf2-faker --dev
Usage
Provided for each TF2 class is a method to return a random weapon string in a factory:
$this->faker->scoutWeapon();
You can also specify a class and class + slot:
$this->faker->classWeapon('heavy'); $this->faker->classWeaponSlot('engineer', 'pda');
As well as for specific slots per class:
$this->faker->spyPrimary(); $this->faker->spyMelee(); $this->faker->spyPDA(); $this->faker->spyWatch(); $this->faker->spySapper();
These exist for all 9 classes.
NOTE: Keep in mind spy is the only one with a Watch and Sapper slot, and Engineer and Spy are the only ones with a PDA slot!
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
Test