wordpress-sdk icon indicating copy to clipboard operation
wordpress-sdk copied to clipboard

Add PHP Namespace

Open cliffordp opened this issue 7 years ago • 4 comments

Please add a PHP namespace within Freemius so my plugin using namespaces can use it, along with Composer's autoloading.

Now's a good time because of the PHP 5.6/7 movement within WP Core.

cliffordp avatar Mar 06 '19 04:03 cliffordp

@cliffordp there are still a lot of websites running old PHP versions, so I don't think we'll introduce namespaces in 2019. Obviously, we'd love to transition to namespacing and autoloading, but we can't ignore the reality.

vovafeldman avatar Jun 16 '19 11:06 vovafeldman

PHP namespaces work with PHP 5.3+ and WP's minimum supported version is now 5.6 and will be 7 by end of 2019. So now would be a great time, although I understand lagging a bit.

cliffordp avatar Jun 17 '19 14:06 cliffordp

+1

dbjpanda avatar Jun 10 '20 23:06 dbjpanda