-
Sanitizing Links
Script to sanitize links on string. This can be useful when trying to format links from untrusted sources.
-
Timezone Conversion
Converting a timestamp from and to a different timezones.
-
Using Reflection to access protected properties in PHP
Here is how to access protected class properties. Reflection is generally a method for inspecting classes and modify its logic at execution time.
-
Embed a <video> in responsive way
This is how to embed a video on a page and make it responsive.
-
PHP Debugging Utility using Monolog
Have created a debug helper script which is very useful for tracing issues in PHP.
-
Add SSL functionality without any changes on application code
The Stunnel program is designed to work as an SSL encryption wrapper between remote client and local (inetd-startable) or remote server. It can be used to add SSL functionality to commonly used inetd daemons like POP2, POP3, and IMAP servers without any changes in the programβs code.
-
Useful array map
Here is an example of array_map function to produce a string by appending each content of a flat array.
-
Find function declaration in PHP
This is a simple way to find where the function is defined on your script
-
PHP Console Template
A template to use when making a script that runs in command-line.
-
Quick PHP Debugging
Put this on top of your script and easily see the errors and warnings.