https://github.com/Shamba-Salama/salamafarm.git
(Install PHP composer if you dont have it yet Download Composer
use the screenshot below if you get stuck at composer download page

After Installing or if you had composer installed, You can just run
composer Install
and skip step 2 and go to step 3
Run the Following Commands
composer require google/apiclient
composer require vlucas/phpdotenv
composer require guzzlehttp/guzzle
composer require phpmailer/phpmailer
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=
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



