- PHP 7.2.5 or higher;
- PDO-SQLite PHP extension enabled;
- and the usual Symfony application requirements.
Run this command:
cd php-test-apod
$ composer install
-
set these Google API Keys (OAUTH_GOOGLE_CLIENT_ID & OAUTH_GOOGLE_CLIENT_SECRET) in your .env file
-
set authorized redirect_uri in your console.developers.google to http://127.0.0.1:8000/connect/google/check
-
set NASA_API_KEY in your .env file
Executed each day to fetch the picture of the day ,run command:
$ php bin/console app:run:media
There's no need to configure anything to run the application. If you have Symfony binary, run this command:
$ symfony serve
Then access the application in your browser at the given URL (http://127.0.0.1:8000 by default).
If you don't have the Symfony binary installed, run:
$ php -S localhost:8000 -t public/