PHP

A Silly way to comment in your Code

Sudeep Acharya
During my beginners year of writing code, i used to comment unnecessarily. I realised this after i saw the code written by senior developers. The main purpose of the comment is to make your code understood by other developers who are working together in the same project or for other contributors. Let us take an example of the silly code: <?php // Assigning the value to firstNumber firstNumber = 9 // Assigning the value to secondNumber secondNumber = 12 // Creating variable to store the sum of firstNumber and secondNumber sumOfNumbers = 0; // Adding both firstNumber and secondNumber and storing it to sumOfNumbers sumOfNumbers = firstNumber + secondNumber // Displaying the result echo sumOfNumbers; ?

How to Install PHP Composer in your Mac

Sudeep Acharya
Composer is the easiest way to manage dependencies to your small to large PHP projects. Use the following commands to install composer in your Mac curl -sS https://getcomposer.org/installer | php Now the composer is installed in your current directory. Now, you can access it using the following command php composer.phar [command] It works but you don’t always want to use this directory path to access the composer, So in the next step we will make it accessible globally.

How to set up basic PHP Project structure with Composer

Sudeep Acharya
Most of the time beginners learning PHP are unaware of Composer, if you are among them, Composer is a dependency management tool for PHP. Let’s take a simple example, rather than using include command in each of the PHP file, composer makes it easy by specifying that file as a dependency. Another example would be if you use some library then it makes easier to use and update it with a single command.

How to remove /public/ from URL in Laravel

Sudeep Acharya
By default in Laravel the URL to access your site is http://example.com/public/. It is not good to keep public in URL as it makes URL ugly and longer. So, let’s talk about the solution to remove /public/ from the URL. Method I : Using .htaccess Create a .htaccess file your Laravel root directory if it does not exists already. (Normally it is under your public_html folder) And add the following code to it:

Beautiful Social Widget - WordPress Plugin

Sudeep Acharya
Beautiful Social Widget is WordPress plugins which is useful to link to your social media profiles. This plugins adds the widget in your blog. This plugin supports Facebook, Twitter, Google Plus, Linked In, Pinterest, YouTube, Instagram, Tumblr, Flickr, Rss and Email Me. Download Beautiful Social Widget. How to use this plugins ? Well this is very easy to use. First of all install this plugins and then activate it. Then navigate to your Widgets section which is in Appearance tab.

Clean Black WordPress Theme

Sudeep Acharya
Clean Black is a free WordPress theme. It is black and responsive theme which is easy to customize. Tags : Responsive, 2 column, Right sidebar, Black, Clean Design. Download: Clean Black WordPress theme Theme Update: (22, Jan 2014) From version 1.4 you can show either full post or summary in your Home page and Archive pages. Customizing Theme Header You can show Blog title and description in the header also you can show the image in the header(size 960*150).

Sweet Tech WordPress Theme

Sudeep Acharya
Sweet Tech is a free WordPress theme. It is clean, white, blue theme. It is extremely easy to customize and maintain your site. Features: Two Column, Right Sidebar Fully Responsive clean Design Blue and white color theme Fastest loading theme Social Media Icons and Search box built-in Download Sweet Tech WordPress theme. Using Sweet Tech theme As mentioned earlier this theme is very easy to use and customize. Let’s discuss about customizing each part of the theme here.