The background is this: in the symfony application, you need to send notifications to ios, android. I want to use the GCMMessage and ApnsPHP libraries. Composer downloaded them to vendors without any problems.

The catch is how to use them in a particular place. There are no problems with GCMMessage - just use use, but ApnsPHP uses its own ApnsPHP_Autoload. How to embed it in symfony?

    1 answer 1

    No need to separately build something.

    ApnsPHP is also available.

    $push = new \ApnsPHP_Push( \ApnsPHP_Abstract::ENVIRONMENT_SANDBOX, 'server_certificates_bundle_sandbox.pem' ); 

    Apolo PHP's autoload is already loaded via composer.