Convert Data from MySQL to JSON using PHP

Convert Data from MySQL to JSON using PHP

Converting data from MySQL to JSON format in PHP, is one of the most prominent task in web development. JSON is the most preferred data format over xml as data exchange between web and mobile applications. JSON format has it’s own advantages like light weight, ability to store complex data structures in plain text and human readability. In previous post we have already discussed about converting JSON data into MySQL …

Continue reading

How to Insert JSON Data into MySQL using PHP

How to Insert JSON Data into MySQL using PHP

In this tutorial I will show you How to Insert JSON Data into MySQL using PHP. To convert JSON to MySQL using PHP includes some steps like how to read JSON file, convert json to array and insert that json array into MySQL database. Here are the steps to Insert JSON data into MySQL using PHP. Step 1: Read the JSON file in PHP We have to read the JSON …

Continue reading

convert currency in PHP using Google Finance API

In this tutorial, I will show you how to convert currency in PHP using Google Finance API. Using the API you can easily convert any currency to your desired country currency. You have to send out http request to Google finance with three values – amount, from currency and to currency code. It sends back the response as HTML which you have to parse and extract the converted amount. PHP …

Continue reading

Create Layout in Laravel using blade templates

Create Layout in Laravel using blade templates

Any type of site need template to divide layout in sections like header, middle, sidebar and footer. This is called templating. We are using blade template to create layout in laravel. Using blade templates we can save more html code writing and fast rendering of page. It is a another good feature of blade template. Let’s check how to create layout in laravel using blade templates. Blade Template Blade is …

Continue reading

How to remove public from URL in Laravel

How to remove public from URL in Laravel

In this tutorial I will show you how to remove public from URL in laravel. Default laravel access URL is http://example.com/public/. So we need to remove “public” from the URL to get clean urls in Laravel 5. Remove public from URL in laravel 5 and Lower versions Move public index.php file to root It’s a simple method to remove public from URL in laravel below are the steps to do …

Continue reading

How to include css and js in Laravel 5

How to include css and js in Laravel 5

It’s a basic need to include external or internal css and js in our application. Today in this tutorial we’ll discuss how to include css and js in Laravel 5 application. Before laravel 5 we are using HtmlBuilder to add style and scripts. But in laravel 5 HtmlBuilder has been removed, so HTML::style() is no longer available now. After including HtmlBuilder package you can easily add your css and js …

Continue reading

Turn on maintenance mode in laravel

Turn on maintenance mode in laravel

Today I will show you how to turn on maintenance mode in laravel. If you are working on your live site and want to turn on maintenance mode in laravel, you just need a command run and done. All this can handle via php artisan commands. You can learn about artisan commands here. Turn on maintenance mode in laravel You just need to grab your application path where laravel application …

Continue reading

Install Laravel via Laravel installer in windows

Install Laravel via Laravel installer in windows

Today I will explain how to install Laravel via Laravel installer in windows. Laravel 5 has new method to install via laravel installer on all operating systems like windows, ubuntu etc and for xampp or wamp. Installing laravel via laravel installer method on windows is much faster then composer. It require only few commands to install and will be instant install so it’s a quick method. Below I am sharing …

Continue reading