PHPackages                             bastuijnman/flagpost - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. bastuijnman/flagpost

ActiveLibrary[Testing &amp; Quality](/categories/testing)

bastuijnman/flagpost
====================

Provides basic A/B test results for Laravel Pennant

1.0.0-beta2(2y ago)00MITPHP

Since Jan 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bastuijnman/flagpost)[ Packagist](https://packagist.org/packages/bastuijnman/flagpost)[ RSS](/packages/bastuijnman-flagpost/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Flagpost
========

[](#flagpost)

Flagpost is a package that integrates with Laravel &amp; Laravel Pennant to slightly enhance the basic A/B testing capabilities and lets you setup goals and track "conversion" rates.

Installation
------------

[](#installation)

Install Flagpost into your project:

```
composer require bastuijnman/flagpost
```

When installed make sure you run the migrations to make sure conversions can be tracked in your database.

```
php artisan migrate
```

Usage
-----

[](#usage)

After defining your Laravel Pennant features you can track user conversions with them by using the `Goal` facade. Flagpost aims to follow a similar interface to pennant, so in order to track a goal you would simply do

```
