{"id":22534,"date":"2014-09-16T10:55:48","date_gmt":"2014-09-16T08:55:48","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=22534"},"modified":"2014-09-16T10:55:48","modified_gmt":"2014-09-16T08:55:48","slug":"phpdotenv-loads-environment-variables-from-env-file-to-getenv-_env-and-_server-automagically","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2014\/09\/16\/phpdotenv-loads-environment-variables-from-env-file-to-getenv-_env-and-_server-automagically\/","title":{"rendered":"phpdotenv &#8211; Loads environment variables from .env file to getenv(), $_ENV and $_SERVER automagically"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><a href=\"https:\/\/github.com\/vlucas\/phpdotenv\">phpdotenv<\/a> &#8211; Loads environment variables from .env file to getenv(), $_ENV and $_SERVER automagically<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>phpdotenv &#8211; Loads environment variables from .env file to getenv(), $_ENV and $_SERVER automagically<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"link","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,18,62,1334,60],"tags":[1586,38,200,1330],"keyring_services":[],"class_list":["post-22534","post","type-post","status-publish","format-link","hentry","category-general","category-programming","category-technology","category-web-work","category-wordpress","tag-deployment","tag-php","tag-security","tag-web-development","post_format-post-format-link"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":25961,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/03\/20\/single-sign-on-sugarcrm-roundcube-multiple-php-sessions\/","url_meta":{"origin":22534,"position":0},"title":"Single Sign-On with SugarCRM and RoundCube Using Multiple PHP Sessions","author":"Leonid Mamchenkov","date":"March 20, 2016","format":false,"excerpt":"I am currently involved in an interesting integration project at work. \u00a0As part of it, we need to create a single sign-on process between\u00a0SugarCRM (version 6.5.20) and RoundCube (version 1.1.4) webmail application. \u00a0RoundCube webmail is being displayed within the iframe inside the SugarCRM user interface, so it would help if\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26010,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/04\/12\/open-source-software-is-so-reassuring\/","url_meta":{"origin":22534,"position":1},"title":"Open Source software is so reassuring &#8230;","author":"Leonid Mamchenkov","date":"April 12, 2016","format":false,"excerpt":"There's nothing like working on a problem for a few days and getting to the reassuring code snippet like this: The first comment\u00a0is misleading. It throws you off. Almost make you close the file and go somewhere else. But that's just a little frustration from the last few days. The\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26031,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/04\/18\/single-sign-on-between-sugarcrm-and-request-tracker\/","url_meta":{"origin":22534,"position":2},"title":"Single Sign-On Between SugarCRM and Request Tracker","author":"Leonid Mamchenkov","date":"April 18, 2016","format":false,"excerpt":"As mentioned\u00a0before,\u00a0over the last few month I've been involved in quite a few integration projects, using mostly SugarCRM and Request Tracker. \u00a0One of the interesting challenges was the Single Sign-On (SSO) between the two. The interesting bit comes from these facts: Different technologies: SugarCRM is written in PHP, while Request\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22700,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/10\/22\/url-rewriting-in-built-in-web-server-of-php\/","url_meta":{"origin":22534,"position":3},"title":"URL rewriting in built-in web server of PHP","author":"Leonid Mamchenkov","date":"October 22, 2014","format":false,"excerpt":"PHP comes with a handy for development built-in web server. \u00a0However, most web projects have friendly URLs these days which are either Apache (mod_rewrite) or Nginx specific configuration. \u00a0This almost renders built-in PHP web server useless. \u00a0Unless you provide a PHP-based routing, like so: Start the PHP web server with\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20213,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/02\/03\/fedora-and-usb-disks-going-into-runmediauser\/","url_meta":{"origin":22534,"position":4},"title":"Fedora and USB disks going into \/run\/media\/user","author":"Leonid Mamchenkov","date":"February 3, 2014","format":"link","excerpt":"Fedora and USB disks going into \/run\/media\/user As part of systemd\/DBus revolution, newer Fedoras have this annoying feature that all USB disks get mounted into to \/run\/media\/[user]\/[diskname] (also \/var\/run\/media, which is a symlink). [...] To return old behavior back and make udisks2 change mount point to \/media, create a file\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26813,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/10\/31\/easier-aws-cli-with-docker\/","url_meta":{"origin":22534,"position":5},"title":"Easier AWS CLI with Docker","author":"Leonid Mamchenkov","date":"October 31, 2016","format":false,"excerpt":"Here is a handy blog post that shows how to simplify the installation and running of the Amazon AWS command line commands, using Docker. \u00a0With the Dockerfile like this: One can build the image and run the container as follows: Obviously, DO NOT hardcode your Amazon AWS credentials into an\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/22534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=22534"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/22534\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=22534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=22534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=22534"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=22534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}