nsukonny/n-framework

Framework for fast development WordPress plugins

Installs: 33

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/nsukonny/n-framework

dev-main 2021-12-28 11:16 UTC

This package is auto-updated.

Last update: 2025-12-28 19:25:48 UTC


README

Framework for fast development of WordPress Plugins

Example of initialisation the plugin

namespace NMagnet;

use NSukonny\NFramework\Loader;

defined( 'ABSPATH' ) || exit;

define( 'VERSION', '1.0.0' );
define( 'PATH', plugin_dir_path( __FILE__ ) );
define( 'URL', plugin_dir_url( __FILE__ ) );

require_once( plugin_dir_path( __FILE__ ) . '/vendor/autoload.php' );
Loader::init_autoload( __NAMESPACE__, __DIR__ );

//Now you can star the plugin
add_action('init', array(NMagnet::class, 'instance'));