LotterEase is the perfect PHP script for turning anything into a lottery. Simply input the possible prizes and click draw and you will be returned a prize at random, but that’s only where it begins. Unlike most lottery scripts you can choose the odds for different prizes, and you don’t have to do any of the math. Have a fun draw with only a single winner or have a long term draw with many small prizes but only a few large ones. Home Site – View Demo
Twitter authentication has been added to LotterEase allowing you to choose one of your followers at random as the recipient of a prize. It does have its own method you will read about below but it basically calls the lottery function that is used to draw a prize at random and it passes it an array of your twitter followers
Remember, every request sent to Twitter’s API must be authorized. You will have to register a new application with Twitter, obtain a consumer key (identifies your app) and an access token (identifies a user of your app), and check to make sure that you are sending the values correctly.
Visit Twitter Developer Portal and register a new application.
On the application settings page, click “Create my access token” to generate an access token and secret.
Copy the values for consumer key, consumer secret, access token, and access secret into the LotterEase config.ini file.
Full Integration CapabilitiesLotterEase makes it easy to integrate a lottery style award system into any shopping cart or ecommerce system, and is a great way to entice more customers.
To use it just simply add a call to the LotterEase script from within your checkout process and it will give each shopper a randomized prize. This prize could be a percentage off the sale, a coupon for next time, or even a free addition to their order, but it is all done with a single call to this simple to use PHP script. The documentation goes in to great detail.
How It WorksLotterEase is really easy to use, just following these simple steps you can have a lottery based application. Define your prizes Define the odds of winning each prize. Draw a prize, yes it is that easy.
LotterEase even tracks your past draw winners and includes a table to show your users who has previously won, what they won, and even when they won it. They can even see what prizes they could be lucky enough to win with the included prize table.