Download the PHP package ziming/laravel-statsig without Composer
On this page you can find all versions of the php package ziming/laravel-statsig. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ziming/laravel-statsig
More information about ziming/laravel-statsig
Files in ziming/laravel-statsig
Package laravel-statsig
Short Description Laravel Package for Statsig
License MIT
Homepage https://github.com/ziming/laravel-statsig
Informations about the package laravel-statsig
laravel-statsig
Laravel Package for Statsig. A Feature Gate & A/B Testing Platform
Update: As of Aug/Sept 2023, Statsig has decided to cut lots of features from their free tier. Which also mean that if you have a problem with the paid tier features, I will not be able to help you anymore as I am not a paid tier user.
Support us
Donations are welcomed too as an alternative. Anything goes.
You can also let Stasig know that this package referred you there
Installation
You can install the package via composer:
Add the following 2 commands to your laravel project app/Console/Kernel.php
You can publish the config file with:
This is the contents of the published config file:
Usage
A handy blade directive is also provided to check against Statsig Feature Gates in your frontend blade templates
It is confusingly named in all lowercase to match the official laravel naming conventions for blade directives.
Lastly, a helper function is also provided if you want to be even more concise in your blade templates. It is named in snake case, following laravel naming conventions for global helper functions.
Like the blade directive, currently it can only be used if the user is logged in.
Testing
No tests currently, feel free to PR
Useful References
Below are links to some good reads that I think would benefit you in getting started:
Experimentation
Event Naming Best Practices
- https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/
- https://davidwells.io/blog/clean-analytics
- https://databeats.community/p/product-analytics-components-of-event-data
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- ziming
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-statsig with dependencies
illuminate/contracts Version ^10.0 | ^11.0
spatie/laravel-package-tools Version ^1.14.0
statsig/statsigsdk Version ^3.0