Skip to content

Barebone PHP: Stream a video file for BTC payment

Notifications You must be signed in to change notification settings

seamuswc/BTCstreaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A barebones PHP program that plays a movie after receiving a BTC payment.

Note: BTC payments sent from exchanges can take 10 minutes to verify, most wallets take 5 seconds.

After download you'll be directed to a register page and asked for: Username, Password, and your Gemini Keys

Simple login and backend for MP4 uploads.

Simple BTC payment system that redirects the user to the movie after a BTC payment.

Need a Gemini account for dynamic BTC address creation.

Create API Keys. Select Fund Management as API key type. This allows address creation but not sending or selling of funds.

Server Setup: Recommend DigitalOcean & Ubuntu

also run apt-get install composer in step 2

Ok, now time to pull in the site. First we need to clean out the web directory. Only need to do this if there are files in the HTML folder

cd /var/www/html

rm *

rm .htaccess

Pull in the git

git clone https://github.com/seamuswc/BTCstreaming.git .

load the dependencies and map out the files

composer install

composer dump-autoload

Potential Database related crashes

'config.php' contains the database connection information. Edit it to adjsut 'username', 'password', etc...

The program automatically creates a database called 'stream'. If there is already a Database with this name the program might not work.

Good to Go!

License

This project is licensed under the MIT License

About

Barebone PHP: Stream a video file for BTC payment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published