apns-php利用によるpush通知
ApnsPHP_Pushのコンストラクタ第一引数、第二引数を編集します。

項目 概要
第一引数 開発用か、製品用かの環境変数を指定します。
開発用の場合「ApnsPHP_Abstract::ENVIRONMENT_SANDBOX」
製品用の場合「ApnsPHP_Abstract::ENVIRONMENT_PRODUCTION」

第二引数 プロバイダ証明書のパスを指定します。
開発用の場合「server_certificates_sandbox.pem」
製品用の場合「server_certificates_production.pem」

参考サイト
iOS/Androidのpush通知
http://tbrhdys.hatenablog.com/entry/2015/10/10/225628
iOSでプッシュ通知を実装する方法の超詳細まとめ後篇
https://www.lancork.net/2013/08/how-to-ios-push-second/
前篇は下記
https://www.lancork.net/2013/08/how-to-ios-push-first/
サンプルプログラム
<?php

// Adjust to your timezone
date_default_timezone_set('Asia/Tokyo');

// Report all PHP errors
error_reporting(-1);

// Using Autoload all classes are loaded on-demand
require_once 'ApnsPHP/Autoload.php';

// Instanciate a new ApnsPHP_Push object
//Deveroper用
$push = new ApnsPHP_Push(
ApnsPHP_Abstract::ENVIRONMENT_SANDBOX,
'pushCerDev_ANNotex.pem'
);
//Distribution
$push = new ApnsPHP_Push(
ApnsPHP_Abstract::ENVIRONMENT_PRODUCTION,
'pushCer_ANNotex.pem'
);


// Set the Root Certificate Autority to verify the Apple remote peer
$push->setRootCertificationAuthority('pushKey_ANNotex.pem');

// Connect to the Apple Push Notification Service
$push->connect();

// Instantiate a new Message with a single recipient
$message = new ApnsPHP_Message('c7c12e2c95d59918923ee08181711df27ac0c79a953e18663e54c8f5800ea46e');

// Set a custom identifier. To get back this identifier use the getCustomIdentifier() method
// over a ApnsPHP_Message object retrieved with the getErrors() message.
$message->setCustomIdentifier("Message-Badge-3");

// Set badge icon to "3"
$message->setBadge(3);

// Set a simple welcome text
$message->setText('Hello APNs-enabled device!');

// Play the default sound
$message->setSound();

// Set a custom property
$message->setCustomProperty('acme2', array('bang', 'whiz'));

// Set another custom property
$message->setCustomProperty('acme3', array('bing', 'bong'));

// Set the expiry value to 30 seconds
$message->setExpiry(30);

for($i=1;$i<=2;$i++){
// Add the message to the message queue
$push->add($message);

// Send all messages in the message queue
$push->send();
}
// Disconnect from the Apple Push Notification Service
$push->disconnect();

// Examine the error message container
$aErrorQueue = $push->getErrors();
if (!empty($aErrorQueue)) {
var_dump($aErrorQueue);
}

?>

????