PHP code example of yehudafh / active-trail

1. Go to this page and download the library: Download yehudafh/active-trail library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yehudafh / active-trail example snippets


ActiveTrail::email('[email protected]')
    # Optional ->
    // ->sms('+972000000000')
    // ->status()
    // ->fullname('test test') #or  ->firstName()->lastName()
    // ->street()
    // ->zipCode()
    // ->city()
    // ->phone1()
    // ->phone2()
    // ->fax()
    // ->birthday()
    // ->anniversary()
    // ->isDoNotMail()
    // ->isDeleted()
    ->update();

ActiveTrail::email('[email protected]')
    ->addToGroup(1234);

ActiveTrail::email('[email protected]')
    ->addToGroups([1234, 45678]);

ActiveTrail::email('[email protected]')
    ->removeFromGroups([1234, 45678]);


ActiveTrail::updateEmail('[email protected]', '[email protected]');

ActiveTrail::email('[email protected]')->unsubscribed();