# Documentation

Config your application without technical knowable

Thank you for purchasing my theme. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!

Created: 25/08/2020
By: Virmana Inc
Email: virmana.inc@gmail.com

## Setup webflix

After download and uzip the downloaded files Now you need to setup your webflix website and that required a shared hosting or a vps server with the requirement bellow

#### Hosting Requirements

- Exif Extension
- Fileinfo Extension
- GD Extension
- PHP iconv extension
- PHP Vertsion 7.0/7.1/7.2/7.3

After prepare your server follow the steps bellow to setup the webflix website

### 1. Upload project to hositng

1

In the FILES section, click File Manager icon.

2

Click Upload from the top toolbar and upload your Webflix folder as zip file

3

Now click right click on zip file Webflix.zip then click Exract to to descompress the zip file
Now your project has been extracted

### 2. Create your database

1

In the Databases section, click the MySQL Database Wizard icon.

2

For Step 1: Create A Database, enter the database name, and click Next Step.

3

For Step 2: Create Database Users, enter the database user name and password, and click Create User.

4

For Step 3: Add User to the Database, click the All Privileges checkbox and click Next Step.

5

For Step 4: Complete the task, make a note of the database name, username, and password, as you will need them for next Step

### 3. Import databse in phpMyAdmin

1

Now go to Database section, click the phpMyAdmin

2

phpMyAdmin will open now select the databse you have create and click the import

3

Click Choose File and select your database.sql file then click Go button

4

Now your database has been import

### 4. Config your database

1

go to file File Manager go to webflix/app/config/parameters.yml file and click Edit

2

Set your database infos:
* Set your database name
* Set your dabase user
* Set your dabase password
* Then click Save Changes button

#### Delete Cache files

After finish instalation go to webflix / var / cache and delete prod folder

3

Configuration your website has been configured successfully

#### Free instalation support

if you didn't understand any part our team will be ready at virmana.inc@gmail.com to help to install the script for free.

## Setup Facebook login

After config everything now you app need to config the facebook login auth to do that follow the steps bellow

1

Go to FACEBOOK for developpers website

2

Click on My Apps and create new app (if you have already one for mobile version use it)

3

Click on Setup Facebook Login

4

Select WEB version to setup the website

5

Enter your website url and click save

6

go to Menu left > Facebook login > settings and add your facebook valid OAuth Redirect URLs (https://example.com/login/check-facebook)

7

go to Menu left > Settings > Basic and add your domaine name (without http:// or https://) and add your privacy polcy link

8

go to Menu left > Settings > Basic and copy the app id and app secret and past it in webflix / app / config / config.yml

9

go to webflix / app / cach / in your hositng > file Manager and delete prod folder

or just follow the video bellow

## Setup Google login

After config everything now you app need to config the google login auth to do that follow the video bellow

1

Go to Google Firebase website

2

Create new project (if you have already one for mobile version use it)

3

Now go to Google console developers website and select the project you have created in firebase

4

Then go to Menu left > APIs & Services > Credentials

5

Then go to CREATE CREDENTIALS > OAuth Client ID

6

add your website url and your google recdirect url (https://example.com/login/check-google)

7

now opy the client id and client secret and set it in webflix / app / config / config.yml file

8

go to webflix / app / cach / in your hositng > file Manager and delete prod folder

or just the steps on video bellow

## Admin panel

### Admin panel url

To access to your admin panel url use your website_url/admin/ check example bellow

    https://webflix.virmana.com

admin panel

    https://webflix.virmana.com/admin/

default username and password

    username : admin

    password : 123456

### Mobile app settings

This part to settings your mobile application you can set all settings bellow

- App Name : You mobile app name
- App Description : Your mobile app Description
- Login Requied to open app: to foroce users to login before open the app
- Firebase server key : server key from firebase for notification (we explain how to get it in mobile app documentation)
- Application url on google play : to allow users to download your app from website
- App icon : you can set the app icon here too

### Web settings

This part to settings your webflix you can set all settings bellow

- TheMoviedb API key : this key to import movies from imdb you can get this key from (https://www.themoviedb.org/)
- TheMoviedb API language code : the imdb language use "en" for english "fr" for frensh ...
- Web Site title: the webflix title (will display in page headr)
- Web Site title-subtitle: the webflix subtitle-title (will display in page headr)
- Web site keywords : will be added in page header and will help website for SEO
- add html to header : if you want to add a code in website header like google analytics code
- Website logo : you can set webflix logo
- Website favicon : you can set webflix favicon

### Web settings

This part to settings your webflix you can set all settings bellow

- TheMoviedb API key : this key to import movies from imdb you can get this key from (https://www.themoviedb.org/)
- TheMoviedb API language code : the imdb language use "en" for english "fr" for frensh ...
- Web Site title: the webflix title (will display in page headr)
- Web Site title-subtitle: the webflix subtitle-title (will display in page headr)
- Web site keywords : will be added in page header and will help website for SEO
- add html to header : if you want to add a code in website header like google analytics code
- Website logo : you can set webflix logo
- Website favicon : you can set webflix favicon

### Ads settings

This part its to set your Google Admob/facebook audience network unit ids

You can set the all admob / fab settings ids and enable / disable and the anytype of ads

### Web Ads settings

In this part you can set the ads in the webflix in your movie / tv series / channe tv / home page and also you can disable / enable and also choose between image and embded html code

### Payment settings

In this part you can manage your payment method in webflix and in your mobile application too

Global Settings

- Currency Code : set your currency code

PayPal Payment

- Enable / disable Paypal payment
- PayPal account : set your payment account
- PayPal sandbox : Enable/Disable sandbox for test
- PayPal Client id : this key from paypal get it here (https://developer.paypal.com/developer/applications/)
- PayPal Client secret : this key from paypal (https://developer.paypal.com/developer/applications/)

Google Play

- Enable / disable Google play payment in android app

Stripe Settings

- Enable / disable Stripe payment
- Stripe Api Key : this key you will get it from Stripe here (https://dashboard.stripe.com/test/dashboard)
- Stripe Public Key : this key you will get it from Stripe here (https://dashboard.stripe.com/test/dashboard)

Cash Payment Settings

- Enable / disable Cash Payment
- Cash Account Infos : here add your payment infos

## Update

#### Update To 1.1

to update app to 1.1 update the files monetioned bellow from original source code to your current project

    src/WebBundle/Resources/views/Player/episode.html.twig
    src/AppBundle/Controller/SubscriptionController.php
    src/WebBundle/Controller/SubscriptionController.php
    src/UserBundle/Controller/UserController.php

#### Update To 1.2

to update app to 1.2 update the files monetioned bellow from original source code to your current project

    src/AppBundle/Entity/Support.php

    src/AppBundle/Resources/config/routing.yml
    src/AppBundle/Controller/HomeController.php
    src/AppBundle/Resources/views/Home/apprefundpolicy.html.twig

    src/WebBundle/Controller/HomeController.php
    src/WebBundle/Controller/MovieController.php
    src/WebBundle/Controller/SerieController.php
    src/WebBundle/Controller/ChannelController.php

    src/WebBundle/Resources/views/Home/contact.html.twig

    src/WebBundle/Resources/views/Movie/view.html.twig
    src/WebBundle/Resources/views/Movie/downloads.html.twig
    src/WebBundle/Resources/views/Movie/subtitles.html.twig

    src/WebBundle/Resources/views/Serie/downloads.html.twig
    src/WebBundle/Resources/views/Serie/subtitles.html.twig

    src/WebBundle/Resources/views/Channel/view.html.twig

    src/WebBundle/Resources/views/login.html.twig
    src/WebBundle/Resources/views/layout.html.twig

    app/Resources/TwigBundle/views/Exception/error.html.twig

    public_html(or public)/web/js/app.js

Then go to Webflix / var / cache / and delete prod folder