Documentation
Video Streaming Portal
Thank you so much for purchasing our item from codecanyon.
- Version: 2.2
- Author: Viaviwebtech
- Created: 23 January, 2020
- Update: 01 February, 2024
If you have any questions that are beyond the scope of this help file, Please feel free to email via Item Support Page.
Server Requirements
Checking to ensure that your web host have the minimum requirements to run Viavi Streaming Portal.
- PHP >= 8.2
- Ctype PHP Extension
- cURL PHP Extension
- DOM PHP Extension
- Fileinfo PHP Extension
- Filter PHP Extension
- Hash PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PCRE PHP Extension
- PDO PHP Extension
- Session PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Intl PHP Extension
- GD PHP Extension (or Imagick PHP Extension)
- PHP Zip Archive
- Rewrite Module (Apache or Nginx)
open_basedir must be disabled
File and folder permissions
/bootstrap 775
/storage 775 (recursively)
Installation with Apache
Creating a new DatabaseFirst thing you want to do before installing Video Streaming Portal is to create a new database on your mysql server.
Your hosting provider is likely to offer phpMyAdmin as the mysql manager. If your hosting provider uses a different database manager, the process will be very similar.
Login to your control panel, find and click phpMyAdmin link.
Navigate to the 'Database' tab located in the top menu. Enter a preferred name for your database, and then click on the 'Create' button to initiate the database creation process.
Uploading FilesUnzip the downloaded package and open the /video_streaming_portal folder to find all the files. You will need to upload these files to your hosting web server root using FTP or localhost in order to use it on your website, usually /path/to/www/
or /path/to/html/
or /path/to/httpdocs/
or /path/to/public_html/
.
Note Make sure .env and .htaccess extract properly. If you did't know where is env file then please check File Structure
Go to the script's installation URL. For example http://yoursite.com or http://yoursite.com/public/install
And follow the web installation Steps.
Installation with Nginx
Upload all the /video_streaming_portal package files to your server root, usually /path/to/www/
or /path/to/html/
or /path/to/httpdocs/
or /path/to/public_html/
and set your server configuration like this:
root "/path/to/www/public";
location / {
try_files $uri $uri/ /index.php?$query_string;
}
- Then restart Nginx.
- Create a MySQL database, add user to it with full permissions.
- Go to the script's installation URL. For example http://yoursite.com or http://yoursite.com/public/install
- And follow the web installation Steps.
Installation Steps
Follow the steps below to setup your Viavi Streaming Portal:-
Minimum Requirements
Run your site or sub domain http://yoursite.com
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.
-
Verifying Purchase
Where can I find my purchase code? Please read this.
Here you have to enter your Envato username and Item Purchase code.Then click Verify.
-
Database Configuration
Enter your
database host
,database user
,database password
anddatabase name
.Note Do not use # in database password.
Then click Import, If everything goes well, you should see this page.
Database import step take sometime, So don't do anything when database import.
-
Finish Installation
Congratulations! Viavi Streaming Portal is successfully installed.
Admin Access
Go to http://yoursite.com/admin after successfully configuration
We created default an admin account for you
Email:
[email protected]
Pass:
admin
File Structure
.env and .htaccess configuration files are located here
All design layout files are located here (resources/views/
)
All language files are located here (Translation file lang/en/words.php
)
Site Configuration
To set the site name, logo etc. go to Admin > Settings > General Settings.
General Settings
Following informations needed to be updated.
- Site Logo - Pick a png logo.
- Site Favicon - Favicons like site icon. Pick a png icon
- Site name - Your site name and this is important for search engines
- Site email - When you send email that email shown to user.
- Site Description - Type some detail about your site.
Email Configuration
So if you want to enable mail sending. Please go to Admin > Settings > SMTP Email
Note Do not use # in email password.
If you have problem with mailing with this setup than please contact your hosting provider with those variables and ask correct info. We recommended use your hosting SMTP email settings.
For Gmail SMTP setup settings
SMTP username:
Gmail email address
SMTP password:
Gmail password
SMTP server address:
smtp.gmail.com
Gmail SMTP port (TLS):
587
SMTP port (SSL):
465
SMTP TLS/SSL required:
Select TLS or SSL
Note Now configure your Google account settings visit Google Security Page.
First, Turn on 2-Step Verification.
Second, Create App passwords, use this password for email password
reCAPTCHA
Get reCAPTCHA Key- Visit https://www.google.com/recaptcha/admin
- Follow the steps by select the reCAPTCHA version 2 and get your site key and your secret key.
- Go to the Admin panel -> Settings -> reCAPTCHA
- Set Site key and Secret key
- Set ON Display Pages
- And Save Settings.
TMDB API
Get an API key from The Movie Database- Sign in or create an account on the The Movie Database website.
- Under the Account icon, click Settings.
- On the API page, click on the link under the Request an API Key section.
- Register an API key as a Developer.
- Agree to the terms of use and fill in the required information:
- Type of Use: Select a type of use from the drop-down menu (e.g., Personal).
- Application Name: Specify an application for which you will use the API key (e.g., Video Streaming Portal).
- Application URL: Provide the website URL.
- Application Summary: Describe how you will use the API key.
- You will see an API key displayed under API Read Access Token (v4 auth). Copy the key and paste it to the API Read Access Token field at Admin panel > Settings > General.
Create Google App
In this step we need google client id and secret that way we can get information of other user. so if you don't have google app account then you can create from here : Google Developers Console. you can find bellow screen :
Now you have to click on Credentials and choose first option oAuth and click Create new Client ID button. now you can see following slide:
Set Authorized redirect URL: http://yourdomainname.com/auth/google/callback
After create account you can copy client id and secret.Now you have to set Client ID and Secret in admin
Create Facebook App
Open a new tab in your browser and go to https://developers.facebook.com. And create an app like the below image.
Now Click on Next.
Now it will ask to enter the display name for your App. Enter a display name and your contact email. Now click on create App ID. you will now end up with the Facebook developer dashboard.
Now click on Facebook login card to setup. It will ask you the login options to generate.
we will be using the web option. Now click on the web and it will ask you to fill the basics information
Once we are done with the form. Now navigate to facebook login > setting which you can find in side navigation bar to set the redirect URI.
Set redirect URI: https://yourdomainname.com/auth/facebook/callback
Note As of October 6, 2018, you won’t be able to use Facebook Login if your site isn’t HTTPS, or you will run into errors when trying to authenticate users.
and click on save changes. now click on setting > basic to get the App ID and App Secret key.
Now we get the Facebook App ID and App Secret Key. Now you have to set Client ID and Secret in admin
Payment Gateway Configuration
Now you need to setup the PayPal, Stripe, Razorpay and etc. go to Admin > Payment Gateway
PayPal
To create a Paypal App, go and visit: https://developer.paypal.com/developer/applications
Log into Dashboard and type your PayPal account email and password.
On the My Apps & Credentials page, toggle to Live or Sandbox depending on which kind of app you want to create or edit
To create an app, click Create App in the REST API apps section. Type a name for your app and click Create App.
By clicking on Create App, it will redirect you to the settings page for your new PayPal App. page will look like as mentioned in the image below:
Copy and save your API credentials — the client ID and secret set on admin.
Braintree (for App only)
Log into either the production Control Panel or the sandbox Control Panel, depending on which environment you are working in
Click on the gear icon in the top right corner
Merchant ID: To find your merchant ID
- Click Business from the drop-down menu
You'll find your merchant ID at the top of this page.
Merchant Accounts ID: To find your Merchant Accounts ID
- Click Business from the drop-down menu
- Scroll to the Merchant Accounts section
From here you'll see the merchant account IDs in the first column for each account.
Public key: To find your Public key
- Click API from the drop-down menu
- Scroll to the API Keys section
If no API keys appear, click the Generate New API Key button.
Private key: To find your private key
- Click API from the drop-down menu
- Scroll to the API Keys section
- Click the View link located in the Private Key column
Your private key will be revealed in the Private Key column on the next page.
Stripe
Get your Stripe Secret Key and Publishable key
Users with Administrator permissions can access a Stripe account’s API keys by navigating to the Developers section of the Stripe dashboard and clicking on API Keys.
Razorpay
API key is a combination of the key_id and key_secret and is required to make any API request to Razorpay. You also have to implement the API key in your code as part of your integration process.
- Log into your Dashboard with appropriate credentials.
- Select the mode (Test or Live) for which you want to generate the API key.
- Navigate to Settings → API Keys → Generate Key to generate key for the selected mode.
The Key Id and Key Secret appear in a pop-out window as shown below:
Paystack
Get your Paystack Test and Live API Keys
In order to get your Test API Keys, simply go to your dashboard settings and click on the API Keys & Webhooks tab. Scroll to where it says "API Configuration - Test Mode", here you will find your Test Secret Key and Test Public Key as captured below:
After you're done testing and are satisfied with your integration, you'll need your Live API Keys to be able to receive real money from your customers.
Instamojo
Sign up on Instamojo.
Signing up will create an account on Instamojo, from which you can obtain your Client ID and Client Secret (any will work). You will need these to create requests.
- Click API & Plugins from the sidebar menu
- Scroll to the Generate Credentials section
PayUMoney
Sign up on PayUMoney.
go to Manage Account ⇒ My Account ⇒ Merchant -Key Salt copy your key and set on admin.
mollie
To generate a live API key so that your website can integrate with the Mollie Payment Gateway go to the Mollie website and perform the following steps
After creating an account the page that opens will look like shown below:-
Click on the Activate account button.
Now the next page will look like shown in the below image where all the details need to be filled.
After the verification process, the live API key will be provided
Flutterwave
Create a Flutterwave account, if you haven't already.
On your dashboard, switch to Test Mode and get your API keys.
To get your keys:
- Log in to your Flutterwave dashboard.
- Navigate to Settings
- Select the API Keys open in the Developers section of the menu to view and copy your keys.
Paytm
- Create account or login using your existing Paytm account.
- Generate your staging account credentials from the dashboard. These are required to explore Paytm's integration solutions.
- When you are ready to go live, activate your account in the dashboard to get production account credentials.
Account credentials are available in your dashboard for both staging and production environments. These credentials consist of the following:
MID (Merchant ID) - This is a unique identifier provided by Paytm to every merchant. MID is part of your account credentials and is different in staging and production environments. Your staging MID is available here and production MID will be available once your activation is complete.
Merchant Key - This is a unique secret key used for secure encryption of every request. This needs to be kept on server-side and should not be shared with anyone.
Cashfree
To get started with Cashfree Payments you must first create an account. To create an account,
- Go to the Cashfree website and click Create Account.
- Login to your Cashfree Payments Account > on the left navigation click Developers.
- In the Payment Gateway section, click API Keys.
Click Generate API Keys. Download the API Keys and keep them safe, do not share them with anyone.
Coingate
Create an account at the CoinGate dashboard. Submit the required documents to verify your account and gain full access.
Login to your CoinGate account, go to the 'API' → 'Apps' section, and click on '+ New App'".
Fill out the form: enter a title, whitelist IPs if needed, Settlement Setting (Default API / plugin settings), and Callback Format (JSON (application/json)). Click "Create API App".
Bank Transfer
When using a bank transfer as a payment gateway, you'll likely need to provide your customers with specific instructions on how to make the transfer.
Here's a template you can use for such communication:
Bank Name: [Your Bank Name]
Account Holder: [Your Name]
Account Number: [Your Bank Account Number]
SWIFT/BIC/IFSC Code: [SWIFT/BIC/IFSC Code]
Transfer the exact amount for the payment to be successful. Please make payment only in the account number mentioned above.
If you have any questions, you can contact customer support at any time.
Android App Configuration
App Verify Purchase: go to Admin > Android App > App Verify.
Verify purchase required for app API and after verify you can access other app settings page.
Note: Don't use the app package name with space otherwise you will get an error.
Cronjob
Set up a cron job on your server like such:
* * * * * /usr/bin/php /home/my_user/my_app/artisan schedule:run >> /dev/null 2>&1
The above is telling your cron to run once every minute. So, once every minutes, it runs your scheduled task.
You can change this frequency to Twice Per Day(0 0,12 * * *) or etc.
Note: This step is only for email notification when any user subscription expired. If you have any issue then contact your hosting provider because cron job path different on different hosting.
FAQ
A FAQ is a list of frequently asked questions (FAQs) and answers on a particular topic.
words.php
language file found in /lang/en
folder, and change it according to your needs./resources/views
folder.Header Code
and Footer Code
.Admin => Pages
.License
Regular LicenseUse, by you or one client, in a single end product which end users are not charged for. You can't Sell the End Product, except to one client. (If you or your client want to Sell the End Product, you will need the Extended License.)
Extended LicenseThe Extended License grants you, the purchaser, an ongoing, non-exclusive, worldwide license to make use of the digital work (Item) you have selected. You are licensed to use the Item to create one single End Product for yourself or for one client (a "single application"), and the End Product may be Sold.
Support
We provide support through Skype, Email or WhatsApp.Skype: support.viaviweb
Email: [email protected] OR [email protected]
WhatsApp: +919227777522
If this documentation doesn't answer your questions, So, Please send us Email via Item Support Page
We are located in GMT +5:30 time zone and we answer all questions within 12-24 hours in weekdays. In some rare cases the waiting time can be to 48 hours. (except holiday seasons which might take longer).
Don’t forget to Rate this script
Go to your Codecanyon Profile > Downloads Tab > & then You can Rate & Review for our script.
Thank You.