8
8
Laravel Package for Statsig. A Feature Gate & A/B Testing Platform with a somewhat decent free tier.
9
9
10
10
This package is still very early in development & likely not ready for production use yet.
11
- I have only just started using it in production on a small site 1st .
11
+ I have only just started using it in production on 2 small sites currently .
12
12
13
13
Use at your own risk if you want to try it now. But if you have used in production, it would be great to let me know :)
14
14
@@ -18,7 +18,7 @@ It is basically a wrapper around the [Statsig PHP SDK](https://docs.statsig.com/
18
18
19
19
The following features are being considered for the future. If any of it interest you, feel free to submit a PR.
20
20
21
- - New Adaptors
21
+ - New Adapters
22
22
- New Middlewares
23
23
- Convenience Traits & Methods
24
24
- Octane/Vapor/Serverless Support (Probably far in the future)
@@ -129,9 +129,9 @@ It is confusingly named in all lowercase to match the official laravel naming co
129
129
Currently it can only be used if the user is logged in. Do not use it for your guest pages for now.
130
130
131
131
``` blade
132
- @statsigfeaturegate ('gate_name')
132
+ @statsigcheckgate ('gate_name')
133
133
<p>This is shown if this statsig gate return true</p>
134
- @endstatsigfeaturegate
134
+ @endstatsigcheckgate
135
135
```
136
136
137
137
Lastly, a helper function is also provided if you want to be even more concise in your blade templates.
@@ -140,7 +140,7 @@ It is named in snake case, following laravel naming conventions for global helpe
140
140
Like the blade directive, currently it can only be used if the user is logged in.
141
141
142
142
``` blade
143
- <div class="{{ statsig_feature_gate ('awesome_feature') ? 'border-green' : '' }}">
143
+ <div class="{{ statsig_check_gate ('awesome_feature') ? 'border-green' : '' }}">
144
144
</div>
145
145
```
146
146
## Testing
0 commit comments