Showing all posts tagged: snippets

Laravel  snippets  Monolog  Logging 

How to access the current Monolog instance in Laravel.

Read 2018-09-15

PHP  snippets  dates  PHP DateTime 

Working with dates in yyyy-mm-dd format in PHP with the DateTime class. How to evaluate if an input is a valid date in yyyy-mm-dd input and formatting the DateTime object as a string.

Read 2017-08-17

Vim  snippets 

An easy, customizable way to conduct project-wide search and replace with vim.

Read 2018-09-18

curl  PHP  PHP output buffer  snippets 

Snippet for detailed curl request debugging in PHP using the output buffer.

Read 2021-09-14