A long time ago, I was using it for my PHP projects. So, here now PHP-NTJS will help you coding javascript everywhere.
What's PHP-NTJS
PHP-NTJS allows to dynamically manage your javascripts, stylesheets, and scripts so you can focus on your code. You can code your javascript using PHP class, or write directly in the PHP code, even on template.
JQuery and Bootstrap
Support for popular javascript like JQuery, Bootstrap, and FontAwesome.
CDN
To speed up your page, CDN can be enabled, PHP-NTJS will automatically do it for you. Just loads needed CDN information and assets will loaded from CDN.
Minified Output
On production, you can enable script output compression either by using JSMin or JShrink. On development, you can add script debug information to easily locate problematic code.
Get Code
Source code is available in Github.
Demo is available here.