PHP code example of astrnt / core-module

1. Go to this page and download the library: Download astrnt/core-module 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/ */

    

astrnt / core-module example snippets


Modules\Core\Providers\CwaHookServiceProvider::class,

'CwaHooks' => Modules\Core\Facades\CwaHooks::class,

\CwaHooks::action('cwa.test.action.hook', 'awesome');
\CwaHooks::filter('cwa.test.filter.hook', 'awesome');

@action('cwa.test.action.hook', 'awesome')
@filter('cwa.test.filter.hook', 'awesome')