$obj->boardingPass_addPessangerInfo("Name", "John"); $obj->addIcon("/var/www/passimages/icon.png"); $obj->addIconHD("/var/www/passimages/icon@2x.png"); $obj->addLogo("/var/www/passimages/logo.png"); $obj->addLogoHD("/var/www/passimages/logo@2x.png"); $obj->addBackScreenInfo("Copyrights", "All rights reserved"); if ($obj->generatePass("/var/www/passbook/test/", "BoardingPass")) { echo "<br> Your Pass has been generated. Now sign the pass by using following <a href='https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/PassKit_PG/Chapters/Introduction.html'>link</a>"; } // Create COUPON pass $obj2 = new ApplePass(COUPON, "YOUR PASS IDENTIFIER", "YOUR TEAM IDENTIFIER", "Super General Store", "Super General Store Coupon", "Super Store", "rgb(22, 55, 110)", "rgb(50, 91, 185)"); $obj2->addBarCode("SGSC00145UP"); $obj2->addLocation("27.43903", "69.4532322"); $obj2->addLocation("88.85342", "33.7540967"); $obj2->couponPass_addHeaderInfo("No", "6901"); $obj2->couponPass_addDesc("on all mobile phones", "5% Off"); $obj2->couponPass_addInfo("Expiry:", "04/26/2014"); $obj2->couponPass_addInfo("Member:", "John"); $obj->addIcon("/var/www/images/coupon/icon.png"); $obj2->addIconHD("/var/www/images/coupon/icon@2x.png"); $obj2->addLogo("/var/www/images/coupon/logo.png"); $obj2->addLogoHD("/var/www/images/coupon/logo@2x.png"); $obj2->addBackScreenInfo("Copyrights", "All rights reserved Super General Store"); if ($obj2->generatePass("/var/www/passbook/test/", "CouponPass")) { echo "<br> Your Pass has been generated. Now sign the pass by using following <a href='https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/PassKit_PG/Chapters/Introduction.html'>link</a>"; } // Create Event ticket pass $obj3 = new ApplePass(EVENT_TICKET, "YOUR PASS IDENTIFIER", "YOUR TEAM IDENTIFIER", "ABC Entertainment", "Summer Gala", "ABC Entertainment", "rgb(22, 55, 110)", "rgb(50, 91, 185)"); $obj3->addBarCode("ETDEY01402Q"); $obj3->eventPass_addHeaderInfo("Seat#", "424"); $obj3->eventPass_addEvent("Event", "Summer Fashion Show");