10quality/php-class-to-javascript (packagist): PHP trait that casts (transforms, converts) classes into javascript objects (string version).
Keywords: php|javascript|trait|cast