Posts

Showing posts with the label php

PHP frameworks in 2018 and Why i chose Laravel

PHP is the most popular server-side scripting language for developing Web applications or dynamic websites. PHP has great HTML and Database interactions. Compare to other languages, It is very simple to use. PHP has great frameworks for developing great and secure web applications. Here I am introducing some frameworks of PHP 1. Laravel: Laravel is the free open source PHP framework created by Taylor Otwell in 2011. This framework has many functions, the aim of which is to provide as fast development process as it is possible. Laravel offers the following key features – New directory structure – This new folder contains all language and template files. Route caching – Route caching feature speeds up the application route registration Authentication – Laravel 5 contains the ready to use inbuilt authentication system. Multiple file system – Laravel 5 provides the native support for multiple file system Unit testing is provided as an integral part of Laravel Template engi

Multiple DataBase Connections in Laravel

This article is about using databases with different data, not necessary for load balancing (or connection pooling) between databases. Define Connections Inside of your datbase configuration file - likely app/config/database.php - you can define more than one database connection of any type. In fact, you can define as many connections as you'd like. For instance, if your application has to pull data from 2 MySQL databases, you can define them both separately: <?php return array(     'default' => 'mysql',     'connections' => array(         # Our primary database connection         'mysql' => array(             'driver'    => 'mysql',             'host'      => 'host1',             'database'  => 'database1',             'username'  => 'user1',             'password'  => 'pass1'             'charset'   => 'utf

Convert a PHP script into a stand-alone windows executable

PHP Desktop is the most simple and best solution. It is an open source project founded by Czarek Tomczak in 2012 to provide a way for developing native desktop GUI applications using web technologies such as PHP, HTML5, JavaScript, and SQLite. You can download the PHP Desktop from  https://github.com/cztomczak/phpdesktop People who have used local server like xampp, wampp etc, it won't be a problem to understand the concept. Just download PHP Desktop and copy your whole project in the www folder located in PHP Desktop directory (phpdesktop/www/). Its done, now click the executable file (phpdesktop-chrome.exe). You will see an exact replica of your website. Please check these bellow link for further instruction : https://phpocean.com/tutorials/design-and-illustration/create-your-first-desktop-application-with-php-and-php-desktop/4 https://stackoverflow.com/questions/9046675/convert-a-php-script-into-a-stand-alone-windows-executable

Step by Step install xampp and laravel in windows

Image
 Laravel is a most popular framework for PHP. Laravel provides lots of functionality like data migration, MVC, blade template etc. But if you don't know how to install laravel in your windows system then you can run laravel easily by following few step. In this installation, we use xampp server for PHP. Step 1: Install Xampp In this step we have to install xampp for PHP, if you haven't install xampp server in your system then you can download and install from here : Download xampp make sure you have to download >5.5.9 PHP version because laravel 5 requires at least 5.5.9 version. Step 2: Install Composer After xampp server installs successfully, you have to install composer so you haven't install yet then you can download from here:  Download Composer . Step 3: Create Laravel Project After Composer installs successfully, we can run composer command in our system so now we can create new laravel application using below command. I listed three co