Documentation

Last updated: March 7th, 2021

Introduction

Yo!Stream - Movie & Tv Shows Php Script is a fully accomplished & outstanding movies & tv shows streaming platform with TMDB data generate(title, images, description, actors, etc...) that's easy to use as well as it comes with a completely responsive design(desktop, tablet, mobile, etc..), it has statistic dashboard ready in it where you can track the website stats. It comes with an astonishing backend & 2 styles of frontend i.e. dark and light.

Installation

Server Requirements

Checking to ensure that your web host have the minimum requirements to run Yo!Stream.
  • PHP >= 7.3
  • BCMath PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Fileinfo PHP Extension
  • Curl PHP Extension

Unzip and Upload

Extract the archive you have downloaded. Copy all files from yostream_script folder and upload to your server.

Note: Make sure .env and .htaccess extract properly. If you did't know where is env file then please check File Structure

File Structure - yostream_script
File Structure

You have obtain the credentials to communicate with Google Analytics


Getting credentials

The first thing you’ll need to do is to get some credentials to use Google API’s. I’m assuming that you’ve already created a Google account and are signed in. Head over to Google API’s site and click "Select a project" in the header.

Google Analytics

Next up we must specify which API’s the project may consume. In the list of available API’s click "Google Analytics API". On the next screen click "Enable".

Google Analytics

Now that you’ve created a project that has access to the Analytics API it’s time to download a file with these credentials. Click "Credentials" in the sidebar. You’ll want to create a "Service account key".

Google Analytics

On the next screen you can give the service account a name. You can name it anything you’d like. In the service account id you’ll see an email address. We’ll use this email address later on in this guide. Select "JSON" as the key type and click "Create" to download the JSON file.

Google Analytics

Save the json inside your Laravel project at the location specified in the (storage\app\analytics\service_account_credentials.json) key of the config file of this package. Because the json file contains potentially sensitive information I don't recommend committing it to your git repository.

Note: rename the json file if its isn't "service_account_credentials.json".

Granting permissions to your Analytics property


I'm assuming that you've already created a Analytics account on the Analytics site. Go to "User management" in the Admin-section of the property.

Google Analytics

On this screen you can grant access to the email address found in the client_email key from the json file you download in the previous step. Read only access is enough.

Google Analytics
Getting the view id

The last thing you'll have to do is fill in the view_id in the config file. You can get the right value on the Analytics site. Go to "View setting" in the Admin-section of the property.

The following quick steps show how the installation progress.

Step One

Run your site or sub domain http://yoursite.com/install

Installation Step

Click > Check Requirements

Installation Step

Minimum Requirements

You should now see the minimum system requirements checklist - If there are any issues with the checklist, you will need to fix that before you can proceed to the next step.

Step Two

File and folder permissions.

Installation Step

File and folder permissions.

You should now see the file and folder permissions checklist - If there are any issues with the checklist, you will need to fix the permissions before you can proceed to the next step.

Step Three

Editing the .env file in classic mode!

Installation Step

Click > Classic Text Editor!

Installation Step

Editing .env file

We will need to setup our database, assuming you know how to create a database using phpmyadmin. After creating the database, we will add the database credentials in our application. This .env environment file which will have all the sensitive data like database credentials, mail driver credentials, etc because it’s not recommended to store such information directly inside the code (environment files are not limited to PHP. They are used in all other major frameworks). Values inside the .env files are loaded inside the files from the config directory.Let’s add the value for database and mails.

Once you had added the database and mail credentials. You have to get TMDB and Google Analytics Views ID.

How to get TMDB Token

In order to request an API token from TMDB:

  • Create a free account
  • Check your e-mail to verify your account.
  • Visit the API Settings page in your Account Settings and request an API token
  • You should now have an API token [API Read Access Token (v4 auth)] and be ready to go!

Required Field to be change:

APP_NAME=Laravel

TMDB_TOKEN=
ANALYTICS_VIEW_ID=

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=

MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=587
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_FROM_ADDRESS=admin@me.com

Then Click Save Install. This may take time to migrate database, so please be patient.

Step Four

If everything goes well, you should see this page.

Installation Step

Finish Installation

Congratulations! Yo!Stream is successfully installed.

Installation Step

Admin Access

Go to http://yoursite.com/login after successfully configuration

We created an admin account for you by default

Email: admin@me.com
Pass: password

Site Configuration

To set the site name, description, logo, favicon etc. go to Admin > Settings > General.

General Settings Feilds

Site Name
Site Title
Site Description
Site Keywords
Copyright Text
Site Author
Site Email
Logo
Favicon
Movies / Series / Items Per Page
Website Style - Light or Dark (Default Dark)
Favicon
Comments Moderation(Check if you want every comment to moderate before showing to site)
Maintenance Mode(Check this if your site in maintenance!)
Othe Social Links - Facebook, Twitter, Youtube, etc..

Search Engines Settings Feilds

Google - site verification
Bing - site verification
Yandex - site verification
Google analytics - Important if you want to use Stats tab for Realtime stats, Pageviews etc..
Robots

How to Add Movies

To Add a Movie go to Admin > Movies > Add Movie

Adding Movie

Then add TMDB ID for the Movie eg. https://www.themoviedb.org/movie/464052-wonder-woman-1984

Enter ID 464052 in the feild and click generate button.

Adding Movie

That will fetch the data from TMDB. You just have to enter player name, player embed url, download name, download link and quality.

That All. Click Publish.

How to Add Series / Tv Shows

To Add a Series go to Admin > Series > Add Series

Adding series

Then add TMDB ID for the Series eg. https://www.themoviedb.org/tv/85271-wandavision

Enter ID 85271 in the feild and click generate button.

Adding series

That will fetch the data from TMDB. You just have to enter quality.

That All. Click Publish.

How to Add Series Episodes

To Add a Episodes for any series - Go to Admin > Episodes > Add Episodes

Adding episodes

Then Select Series from the dropdown e.g American Gods [46639]

Click Generate Season button. That will show you another dropdown with season list.Select Season and Episode like that click genrated data for the episode!

Adding episodes

That will fetch the data from TMDB. You just have to enter player name, player embeded link,download name, download link.

That All. Click Publish.

How to Generate Sitemaps

To Generate a sitemaps - Go to Admin > Sitemaps

sitemaps

Click Generate to generated the sitemaps for any of the follwing sitempas!

sitemaps

How to View Analytics Stats

To View Realtime Stats - Go to Admin > Analytics Stats > Realtime

stats

To View Pageviews Stats - Go to Admin > Analytics Stats > Pageviews

stats

To View SEO Stats - Go to Admin > Analytics Stats > SEO Stats

stats

How to View Newsletters List Subscribers and Send Mail

To View List Subscribers - Go to Admin > Newsletters > Subscribers

newsletters

To Send Mail to List Subscribers - Go to Admin > Newsletters > Send

newsletters

FAQ

Can I run on My Server?

If you have all requirements on your server then yes you can run!. Please check requirements Requirements tab

Can I use this on more than one domain?

With purchase license you have one domain permission. You need to get another licenses for your another domians if you want to use on more than one domain.

Issue: Parse error: syntax error, unexpected 'class' (T_CLASS), expecting > identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in

This means you do not have PHP 7.3 or newer version. Script needs PHP 7.3 or newer version.

Issue: I'm Getting 500 Server Error

It could be anything. Its a server error. Could be missing files Or missing server configuration. It may be permission issue too. If so please try to set 777 permission for storage and bootstrap folder and all folders and files on it.

Issue: I'm Getting 404 Server Error

A 404 is an HTTP status code that means you're able to communicate with the server but the server can't find the specific page.

License

Regular License

Use, by you or one client, in a single end product which end users are not charged for.

Note:

To Use the Analytics Stats you have to first get the "service-account-credentials" JSON file and VIEW ID from Google Analytics Follow this step to get json and view id Click Here