Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/meuppt/wp-helpers.com/wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-notice/class-cookie-notice-form.php on line 139

Warning: Cannot modify header information - headers already sent by (output started at /home/meuppt/wp-helpers.com/wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-notice/class-cookie-notice-form.php:139) in /home/meuppt/wp-helpers.com/wp-content/plugins/wph/vendor/carloswph/wp-secure-headers/src/Headers.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/meuppt/wp-helpers.com/wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-notice/class-cookie-notice-form.php:139) in /home/meuppt/wp-helpers.com/wp-content/plugins/wph/vendor/carloswph/wp-secure-headers/src/Headers.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/meuppt/wp-helpers.com/wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-notice/class-cookie-notice-form.php:139) in /home/meuppt/wp-helpers.com/wp-content/plugins/wph/vendor/carloswph/wp-secure-headers/src/Headers.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/meuppt/wp-helpers.com/wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-notice/class-cookie-notice-form.php:139) in /home/meuppt/wp-helpers.com/wp-content/plugins/wph/vendor/carloswph/wp-secure-headers/src/Headers.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/meuppt/wp-helpers.com/wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-notice/class-cookie-notice-form.php:139) in /home/meuppt/wp-helpers.com/wp-content/plugins/wph/vendor/carloswph/wp-secure-headers/src/Headers.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/meuppt/wp-helpers.com/wp-content/plugins/wp-gdpr-cookie-notice/src/cookie-notice/class-cookie-notice-form.php:139) in /home/meuppt/wp-helpers.com/wp-content/plugins/wph/vendor/carloswph/wp-secure-headers/src/Headers.php on line 35
PSR Archives | Wordpress Tips, Tricks and Tools
Posted inPHP

Create a simple PSR-4 compliant autoloader for any plugin

A lot of PHP developers involved with WordPress projects, especially those developing plugins, opt for using Composer. Not only for requiring libraries they can use, but also for autoloading classes and even files inside the plugin. However, some prefer to keep distance from Composer when dealing with WP coding. No problem, if this is your […]