Blog > Category > Today I Learned

January 16, 2018

How to move a dependency to Composer while requiring an old version

A common problem I run into with older applications are dependencies that have been added and loaded from the application's repository. You would often see a "libraries" folder with a "className.php" type file. If you're lucky you’ll have the entire folder of the dependency including the release notes to be able to find out exactly what version you're using. Composer...

Day Job PHP Today I Learned

Read

May 25, 2017

Why does Guzzle put an underscore in my url!?

"Why does Guzzle put an underscore in my url!?" This was an issue I agonized over for more time than I’m willing to admit. I was parsing URLs out of an Apache access log to gather real world usage to run against my test server for the day job. I was having the issue when I read the URL from the file and passed the URL to Guzzle that Guzzle would append an underscore to every URL,...

Day Job PHP Today I Learned

Read