PHP code example of momzor / zfc-user-last-connection-date

1. Go to this page and download the library: Download momzor/zfc-user-last-connection-date 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/ */

    

momzor / zfc-user-last-connection-date example snippets


return array(
    'modules' => array(
        // ...
        'ZfcUserLastConnectionDate',
    ),
        // ...
);

use ZfcUserLastConnectionDate\Entity\LastConnectionDateUser;
class User extends LastConnectionDateUser
{

}

use ZfcUserLastConnectionDate\Entity\LastConnectionTrait;
class User extends ZfcUser
{
    use LastConnectionTrait;
}
bash
    $ php composer.phar update