- Don't send DateTimeInterface as value for properties in extra_data #36
- Registry does not match doctrine proxies #33
getUserProperties()
returns null if instance is a doctrine proxy #32
- Dropped support for PHP
<8.0
& Symfony<5.4
#30
- Dropped support for Symfony
<5.1.5
- Register LoginSuccessEvent for new authenticator system. #26
- Added support for PHP 8.0
- Switch to GitHub Actions from Travis CI
- Added a new configuration option
send_user_ip
which decides whether to send the user ip to mix panel. #19
- Upgraded
symfony/http-kernel
to^4.4.13 || 5.1.5
to address CVE-2020-15094
- Used
Profile properties
. #16 by @RomulusED69
- In your config file replace
Symfony\Component\Security\Core\User\UserInterface:
id: username
email: email
App\Entity\User:
id: id
first_name: first_name
last_name: last_name
email: email
phone: phone
By
Symfony\Component\Security\Core\User\UserInterface:
id: username
$email: email
App\Entity\User:
id: id
$first_name: first_name
$last_name: last_name
$email: email
$phone: phone
- Add
throw_on_user_data_attribute_failure
parameter. #12 by @RomulusED69 - Condition evaluation in Actions. #10 by @RomulusED69
- Added support for Symfony ^4.4 and ^5.0
- Upgrade
mixpanel/mixpanel-php
from ~2.6 to ~2.8 - Configuration: add
enabled
parameter, to enable/disable data sending to Mixpanel - Configuration: add
auto_update_user
parameter, to automatically send user-related data on each request - Configuration: add
extra_data
parameter, to send more user-related data on each request - Create
MixpanelEvent
event, to send data to Mixpanel without using annotation. Example:
$annotation = new Annotation\Track();
$annotation->event = 'My event';
$annotation->props = [
'prop 1' => 'data 1',
'prop 2' => 'data 2',
];
$eventDispatcher->dispatch(new MixpanelEvent($annotation, $request));
- Annotation
Mixpanel\Expression
can now be used in props. Example, to send the current user's ID:
/**
* @Mixpanel\Track("Order Completed", props={
* "user": @Mixpanel\Expression("user.getId()")
* })
*/
- PHP 7.1 support has been removed
- Symfony 2.6 and ^3.0 support has been removed, Symfony 4.3 is not supported
- Autoloading has been changed from PSR-0 to PSR-4
- Setup CI with Travis
- Add PHP-CS-Fixer and lint code