php-gacha | Simple Items or coupons Gacha / Lottery plugin with PHP
kandi X-RAY | php-gacha Summary
kandi X-RAY | php-gacha Summary
php-gacha is a PHP library typically used in Retail applications. php-gacha has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
Simple Items or coupons Gacha / Lottery plugin with PHP
Simple Items or coupons Gacha / Lottery plugin with PHP
Support
Quality
Security
License
Reuse
Support
php-gacha has a low active ecosystem.
It has 9 star(s) with 7 fork(s). There are 3 watchers for this library.
It had no major release in the last 12 months.
php-gacha has no issues reported. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of php-gacha is v2.1
Quality
php-gacha has no bugs reported.
Security
php-gacha has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
php-gacha is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
php-gacha releases are available to install and integrate.
Installation instructions, examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi has reviewed php-gacha and discovered the below as its top functions. This is intended to give you an instant insight into php-gacha implemented functionality, and help decide if they suit your requirements.
- Get random item .
- Calculate the rate
- Put items into collection .
- Drop one or more items .
- Puts the drop - down array .
- Item drop up .
- Retrieve a JSON spinner .
- Item drop down .
- Return a json item
Get all kandi verified functions for this library.
php-gacha Key Features
No Key Features are available at this moment for php-gacha.
php-gacha Examples and Code Snippets
Copy
use Irfa\Gatcha\Roll;
$items = [
'common ITEM1' => 70, // 70% chance
'Rare ITEM 2' => 29.4, // 29.4% chance
'Super Rare ITEM' => 0.3, // 0.3% chance
'Super Rare ITEM 2' => 0.3,
'Super Super Rare ITE
Copy
'aliases' => [
...
'Gatcha' => Irfa\Gatcha\Roll::class,
...
];
...
use Gatcha
class Example {
function index()
{
return Gatcha::put([ 'Item 1' => 29.4, 'Item 2' => 0.3])->spin();
}
}
Copy
$items = [
'common ITEM1' => 70, // 70% chance
'Rare ITEM 2' => 29.4, // 29.4% chance
'Super Rare ITEM' => 0.3, // 0.3% chance
'Super Rare ITEM 2' => 0.3,
'Super Super Rare ITEM' => 0.003, //
Community Discussions
No Community Discussions are available at this moment for php-gacha.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install php-gacha
You can get Composer here.
Support
Fork it (https://github.com/irfaardy/php-gatcha/fork)Commit your changes (git commit -m 'some New Feature')Push to the branch (git push origin x.x)Create a new Pull Request
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page