Tag: php
Generate a QR code for your website page in PHP
Generating QR code for you on any page of your website is very easy with PHP. When you scan the code, it will open a link in the browser. Below is the code snippet https://gist.github.com/BhargavBhandari90/fb34387615e722983b07d1df2da373f9 Sample of QR Code
Installing/Change PHP on your Mac
First, unlink the version you want using the following command Then link your desired version using the following command brew link [email protected] Ref: https://daily-dev-tips.com/posts/installing-php-on-your-mac/
Debugging with Xdebug on Sublime Text 3
Step 1 : Add following lines to your php.ini After this, restart your local server( MAMP, WAMP, XAMP, etc…. ). Step 2 : Install “Xdebug client” from package control. ( Press command/ctrl + shift + p and write “Install package” and press enter. And then write “Xdebug client” ) Step 3 : Open root of…
PHPCode Sniffer + Sublime on windows
Things you need for: cmder composer Sublime Text 2/3 We are going to install using composer, because it will automatically install related packages. So no need to do too many manual stuffs. Step 1: Open “cmder” and run following command composer global require “squizlabs/php_codesniffer=*” This will install php code sniffer into your system. Step 2:…