How To Install?

To install the script follow the steps below :
Server Requirements :

You have to make sure your server meets the following requirements before setting up the source code.

  • PHP >= 7.0.0
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Once you download the Zip File Extract that zip file.

Inside Extracted Folder you will find Folder Named "Source-Code" in which you will find all the code for running your application.

Folder Structure for Folder Named "Source-Code" looks same as shown below :

Folder Structure
Changes in .env File :
1. MySql Database Setup :

a] Now Go to your hosting server and setup Database Host, Database Name, Database Username, Database Password.

b] Inside Extracted Folder you will find Folder Named "Database"

c] Open folder "Database" and you will see a file named as "database.sql"

d] Now Go to your hosting servers PhpMyAdmin And import the "database.sql" file to your mysql database.

e] Now Open .env file inside the Folder Named "Source-Code" and change the below details for database settings :

  • DB_HOST=database_host
  • DB_PORT=database_port
  • DB_DATABASE=database_name
  • DB_USERNAME=database_user_name
  • DB_PASSWORD=database_password
2. Email Settings :

a] Inside .env file inside the Folder Named "Source-Code" and change the below details for email settings :

  • MAIL_DRIVER=mail_driver
  • MAIL_HOST=mail_host
  • MAIL_PORT=mail_port
  • MAIL_USERNAME=email_id
  • MAIL_PASSWORD=email_password
  • MAIL_ENCRYPTION=mail_encryption_type (eg. SSL / TLS / None)

b] Open Folder Named "config" inside the Folder Named "Source-Code" and open file named as mail.php (Source-Code/config/mail.php)and change the below details for email settings :
Search for "MAIL_FROM_ADDRESS" text in this file and change MAIL_FROM_ADDRESS & MAIL_FROM_NAME.

Config Mail

For Social Media Login (Google / Facebook)

Google

To Manage Social Media Login For Google follow the steps below :

To Manage Social Media Login For Google go to Admin Menu > General Settings > Social Media Logins > Google Login.

Google Settings :
Social Media Login

Create Google API GOOGLE_CLIENT_ID & GOOGLE_SECRET_KEY :
Step 1 :

Go to Google Developers Console.
Then create a Project as shown in below image.

Social Media Login

Step 2 :

Once Project is created click OAuth Consent Screen in Left Side Menu And Fill all the details and click Save.

Social Media Login

Step 3 :

After Successfully filling details a page will be shown as shown below.
Click on Create Credentials.

Social Media Login

Step 4 :

Select Application Type as Web Application.
Fill all details and Authorize redirects URL should be : http or https://YOUR_DOMAIN_NAME/login/google/callback
Click on Save.

Social Media Login

Step 5 :

You will receive GOOGLE CLIENT ID & GOOGLE SECRET KEY.

Social Media Login

Step 6 :

Don't Forgot to Enable Google+ API.
Search for API Library and search Google+ API and click Enable Button.


Social Media Login

Step 7 :

Open Source Code and go to folder config and open services.php Source-Code/config/services.php.
Search for google or GOOGLE_CLIENT_ID and and replace GOOGLE CLIENT ID & GOOGLE SECRET KEY received from Google Developer Console.
Also change your domain name in redirect.

Social Media Login
Facebook

To Manage Social Media Login For Facebook follow the steps below :

To Manage Social Media Login For Facebook go to Admin Menu > General Settings > Social Media Logins > Facebook Login.

Facebook Settings :
Social Media Login

Create Facebook API FB_CLIENT_ID & FB_SECRET_KEY :
Step 1 :

Go to Facebook Developers.
Login to your Facebook Account. Pop Up will be shown as shown below after successfull login.
Now Click Next Button.

Social Media Login

Step 2 :

Now Click On Developer Option as shown in below Image.

Social Media Login

Step 3 :

Now Click On Create First App Button as shown in below Image.

Social Media Login

Step 4 :

Now Pop Up will be shown in that enter your Application Display Name and Contact Email.
Now Click on Create App ID.

Social Media Login

Step 5 :

Do Security Check and Click on Submit.

Social Media Login

Step 6 :

Facebook Developers Dashboard will be shown with your App Created.

Social Media Login

Step 7 :

From Left Menu Go To Settings > Basic.
Add Details as shown in below image. and click Save Changes.

Social Media Login

Step 8 :

Now Pop Up will appear asking for Make App Public.
Choose Your Category from drop down and click on Confirm.

Social Media Login

Step 9 :

Now Enable the App ID to live from Top Header as shown in below Image.

Social Media Login

Step 10 :

Scroll Down and Click on Add Platform.

Social Media Login

Step 11 :

On Click of Add Platform Pop Up will be shown and Click on Website.

Social Media Login

Step 12 :

Now add your Website Callback URL it should be : http or https://YOUR_DOMAIN_NAME/login/facebook/callback and click on Save Changes.

Social Media Login

Step 13 :

Now Go To Left Menu Products > Facebook Login > Settings.
Enable Client OAuth Login, Web OAuth Login, Enforce HTTPS (If your Site is hosted on https), Force Web OAuth Reauthentication, Embedded Browser OAuth Login, Use Strict Mode for Redirect URIs
Now add Valid OAuth Redirect URIs as : http or https://YOUR_DOMAIN_NAME/login/facebook/callback.
Now you are all done.

Social Media Login

Step 14 :

Now Go To Left Menu Settings > Basic and copy your FB_CLIENT_ID & FB_SECRET_KEY and Paste in to your Admin Panel > Admin Menu > General Settings > Social Media Logins > Facebook Login.
Open Source Code and go to folder config and open services.php Source-Code/config/services.php.
Search for facebook or FB_CLIENT_ID and and replace FB CLIENT ID & FB SECRET KEY received from Facebook Developer.
Also change your domain name in redirect.

Social Media Login

Thank You!! Hope so you have done this steps successfully. Now your setup is completed.