1. Go to this page and download the library: Download tfhinc/ci-newton 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/ */
tfhinc / ci-newton example snippets
namespace Listeners;
/**
* UpdateUserStatsListener
*
* Update the User stats with the new User data.
*
*/
class UpdateUserStatsListener extends TFHInc/Newton/NewtonListener {
/**
* Run the listener.
*
* @return void
*/
public function run($event): void
{
// Update the User Stats.
}
}