Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hey! 😒😒 First Clone the Ripository (Inside htdocs folder) using the Following link

    https://github.com/Shamba-Salama/salamafarm.git

Now lets do it..

Hey There

1. Install Composer

(Install PHP composer if you dont have it yet Download Composer use the screenshot below if you get stuck at composer download page Composer Download Page

1.1 Note (easy peasy 😁👌)

After Installing or if you had composer installed, You can just run

    composer Install

and skip step 2 and go to step 3

Just skip


2. Install Required Dependencies

Run the Following Commands

i. Install Google api client using

    composer require google/apiclient

ii. phpdotenv to hide credentials using

    composer require vlucas/phpdotenv

iii. Guzzle to send HTTP requests

    composer require guzzlehttp/guzzle

iv. PHP Mailer to Be able to send email

    composer require phpmailer/phpmailer

3. Create .ENV FILE In your Parent Directory

i. Copy The Following and paste inside your .env file

    GOOGLE_CLIENT_ID=
    GOOGLE_CLIENT_SECRET=
    GOOGLE_REDIRECT_URI=

    MICROSOFT_CLIENT_ID=
    MICROSOFT_REDIRECT_URI=


    DATABASE_PASS=
    DATABASE_NAME=


    GMAIL_USERNAME=
    GMAIL_APP_PASSWORD=

Get .env credentials

Login to Google Cloud Console

a) Create a Project

b) Configure OAuth consent screen for a project. Watch this just 60 seconds video📽️ 👉 Click Me

c) Create Google OAuth Credentials. Watch this just a 27 seconds video📽️ 👉 Click Me

d) Now you have GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET , paste them in you .env file

For the GOOGLE_REDIRECT_URI use the Following template! Make sure the project files are inside htdocs folder

 http://localhost/salamafarm/auth/google_callback.php

Happy Coding 🤗

Composer Download Page

Nothing Makes sense?😒😒

-Call me Composer Download Page

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages