Download the PHP package danthedj/laravel-mixpanel without Composer

On this page you can find all versions of the php package danthedj/laravel-mixpanel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-mixpanel

MixPanel for Laravel 5

Join the chat at https://gitter.im/GeneaLabs/laravel-mixpanel Travis Scrutinizer Coveralls GitHub (pre-)release Packagist GitHub license

Features

Requirements and Compatibility

Legacy Versions

Installation

Only if you are running Laravel 5.4 or below: Add the service provider entry in config\app.php:

Verify that your auth configuration file config/auth.php has the user model specified in auth.providers.users.model (or in auth.model for L5.1). If that entry is missing, go ahead and add it.

Lastly, add your Mixpanel token to your .env file:

Configuration

Default Values

Upgrade Notes

Version 0.7.0 for Laravel 5.5

Page Views

Usage

MixPanel is loaded into the IoC as a singleton. This means you don't have to manually call $mixPanel::getInstance() as described in the MixPanel docs. This is already done for you in the ServiceProvider.

Common user events are automatically recorded:

To make custom events, simple get MixPanel from the IoC using DI:

If DI is impractical in certain situations, you can also manually retrieve it from the IoC:

After that you can make the usual calls to the MixPanel API:

Laravel Integration

Out of the box it will record the common events anyone would want to track. Also, if the default $user->name field is used that comes with Laravel, it will split up the name and use the last word as the last name, and everything prior for the first name. Otherwise it will look for first_name and last_name fields in the users table.

Stripe Integration

Many L5 sites are running Cashier to manage their subscriptions. This package creates an API webhook endpoint that keeps vital payment analytics recorded in MixPanel to help identify customer churn.

Out of the box it will record the following Stripe events in MixPanel for you:

Charges

Subscriptions

The Fine Print

Commitment to Quality

During package development I try as best as possible to embrace good design and development practices to try to ensure that this package is as good as it can be. My checklist for package development includes:

Contributing

Please observe and respect all aspects of the included Code of Conduct https://github.com/GeneaLabs/laravel-model-caching/blob/master/CODE_OF_CONDUCT.md.

Reporting Issues

When reporting issues, please fill out the included template as completely as possible. Incomplete issues may be ignored or closed if there is not enough information included to be actionable.

Submitting Pull Requests

Please review the Contribution Guidelines https://github.com/GeneaLabs/laravel-model-caching/blob/master/CONTRIBUTING.md. Only PRs that meet all criterium will be accepted.

❤️ Open-Source Software - Give ⭐️

We have included the awesome symfony/thanks composer package as a dev dependency. Let your OS package maintainers know you appreciate them by starring the packages you use. Simply run composer thanks after installing this package. (And not to worry, since it's a dev-dependency it won't be installed in your live environment.)


All versions of laravel-mixpanel with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
illuminate/auth Version 5.5 - 5.7
illuminate/config Version 5.5 - 5.7
illuminate/console Version 5.5 - 5.7
illuminate/events Version 5.5 - 5.7
illuminate/http Version 5.5 - 5.7
illuminate/routing Version 5.5 - 5.7
illuminate/queue Version 5.5 - 5.7
illuminate/support Version 5.5 - 5.7
mixpanel/mixpanel-php Version ~2.0
sinergi/browser-detector Version ~5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package danthedj/laravel-mixpanel contains the following files

Loading the files please wait ....