Store sensitive data in environment variables using phpdotenv

Pubblicato il: 30 ottobre 2019
sul canale di: Beachcasts Programming Videos
9,298
139

Store sensitive data in environment variables using phpdotenv for php, to follow the twelve factor app ideals. (see shortcuts below to key points) Adam Culp of Beachcasts php programming videos shares how to use phpdotenv to store environment variables with PHP, and then how to retrieve them from $_ENV for usage in a PHP app.

Please * LIKE, COMMENT, AND SUBSCRIBE * - and share with others!

Key Topics:
Storing sensitive data in environment variables
Retrieve environment variables using PHP
Programmatically handling environment variables
Using PHPDotEnv

For a nice list of equipment I use in my studio, and to support the channel if you make any purchases (doesn't cost you a thing), visit my kit at kit.co: https://kit.co/beachcasts/beachcasts-...

Errata:
Let me know if you notice anything that should be errata

Associated Links:
https://github.com/vlucas/phpdotenv
https://12factor.net/config
https://beachcasts.com

Timeline:
00:00 Video Intro
01:57 The starting empty app
02:08 Init Composer in PhpStorm to get composer.json
02:37 Add dependencies to the app with Composer
03:53 Create a new index.php file
04:08 Require the Composer autoload.php
04:52 Create a new .env file containing data
05:38 Import the DotEnv library for use, and configure the instantiation
06:40 Run the index.php file in terminal
07:20 Create an object of phpdotenv using a Factory

Other Beachcasts videos you might find interesting:
Document a REST API with OpenAPI and Stoplight Studio    • Document a REST API with OpenAPI and ...  
Conference Talk Preparation In 8 Steps for Programmers    • Must Follow 8-Step Guide To Conferenc...  
How to understand code written by someone else    • Secrets of how to understand code wri...  
Ways to advance your programming skills and improve as a developer    • Ways to advance your programming skil...  
Make your local DEV environment available on the internet    • Make your local DEV environment avail...  
AWS Elastic Load Balancer (ELB) Tutorial How-To    • AWS Elastic Load Balancer (ELB) Tutor...  
Laravel Model Factory Tutorial using Artisan make:model    • Laravel Model Factory Tutorial using ...  
Authentication in Laravel Tutorial    • Authentication in Laravel Tutorial fo...  
Top 5 skills to be a better software developer    • Top 5 skills to be a better software ...  
Install Laravel in Docker container on Ubuntu for beginners    • Install Laravel in Docker container o...  
Getters and Setters accessors in object oriented programming    • Getters and Setters accessors in obje...  
Critical programming issues preventing a PHP 7 upgrade    • Critical programming issues preventin...  
Behat for beginners functional REST API testing tutorial    • Behat for beginners functional REST A...  
Doctrine ORM one-to-many bi-directional association    • Doctrine ORM one-to-many bi-direction...  
PHP Mess Detector static analysis to find PHP code smells    • PHP Mess Detector static analysis to ...  
Doctrine ORM one-to-many self-referencing association    • PHP DoctrineORM one-to-many self-refe...  
10 reasons to become a consultant in a consulting business    • Top 10 Reasons To Be a Programming Co...  
Zend Framework becomes Laminas project at Linux Foundation    • Zend Framework becomes Laminas projec...  
10 bad things about consulting    • Top 10 bad things about consulting, w...  
How to get lines of code in PHP    • PHPLoc Lines of code static analysis ...  
Make a List handler middleware    • List handler middleware in Zend Expre...  
Make a Delete handler middleware    • Delete handler middleware in Zend Exp...  
Make an Update handler middleware    • Update handler middleware in Zend Exp...  
Use UUID with Doctrine ORM for DB keys    • UUID with Doctrine ORM in Zend Expres...  
Make a Create handler middlware    • Create Handler middleware in Zend Exp...  
Automate Hypermedia creation for PHP REST API    • Automate Hypermedia PHP REST API with...  
Learn about Hypermedia and how to create it    • Creating Hypermedia (HAL) in PHP REST...  
Doctrine ORM Paginator for PHP REST API    • Doctrine ORM Paginator in PHP REST AP...  
Doctrine ORM Entity how to    • Create Doctrine ORM Entity and pagina...  
Configure Doctrine ORM    • Configure Doctrine ORM and Dbal CLI w...  
Create PHP middlware with Zend Expressive    • Create PHP middleware with Zend Expre...  
Configure PhpStorm for PHP development with Docker    • PhpStorm setup for PHP web developmen...  
Create PHP development environment with docker    • PHP web development environment with ...  

Help through referrals:
Thinking of buying a Tesla electric vehicle? Use this referral link to also get six months of free Supercharging for both of us. Thank you. https://www.tesla.com/referral/tanya2...

I use TubeBuddy to help me manage my YouTube channel. If you're interested, click the following link to check it out. https://www.tubebuddy.com/beachcasts

#phpdotenv #twelvefactorapp #beachcasts


In questa pagina del sito puoi guardare il video online Store sensitive data in environment variables using phpdotenv della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Beachcasts Programming Videos 30 ottobre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 9,298 volte e gli è piaciuto 139 spettatori. Buona visione!