PHP

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

How to require a PEAR package with Composer
Learn how to require a PEAR package from composer easily.
How to minify Javascript and CSS using PHP
Learn how to minify optimally your Javascript and CSS code using PHP
How to install and enable the Imagick extension in XAMPP for Windows
Learn how to configure the Imagick extension in XAMPP for Windows.
How to create with Github your first PSR-4 composer/packagist package and publish it in Packagist
Learn how to create and publish your first composer package in Packagist.
How to solve PHP cURL Warning: curl_set_opt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set
Learn how to deal with the tedious CURLOPT_FOLLOWLOCATION issue using cURL in PHP
How to encrypt a PDF (password protection) generated with TCPDF in PHP
Learn how to protect your PDF documents created with TCPDF by setting a password in PHP.
Creating URL slugs properly in PHP (including transliteration for UTF-8)
Learn how to create a slug of an URL in PHP properly and in case that you need to, add support (transliteration) for UTF-8 characters.
How to redirect to a page with plain PHP
Learn how to create a redirect function without the help of any framework using plain PHP.
How to generate QR code with logo easily in PHP automatically
Learn how to generate a QR Code with a logo in the middle.
How to solve PHP 7.0 Polyfill : There is no suitable CSPRNG installed on your system - paragonie/random_compat
Learn why this error appears in your project and how to solve it.