Now a days Laravel was very powerfull and secure framework for PHP open source Application.using laravel you can easily create new application as per your reqirement. We are show you the basic of laravel like how to install laravel using XAMPP and WAMP. First what was the Requirements of laravel. 1)PHP = 7.0.0 2)OpenSSL PHP Extension 3)PDO PHP Extension 4)Mbstring PHP Extension 5)Tokenizer. Working with XAMPP; PHP If Else and Switch Case; More Working with XAMPP. XAMPP is an AMP stack which lets you install Apache, MySQL and PHP in your computer together with some other useful software. It has been designed to provide you an easy installation experience. It’s free and available for Windows, Mac OS and Linux.
Launched in June 2011, Laravel is one of the most popular open-source PHP framework till now. Laravel is developed by and follow design pattern. Purpose of laravel is to bring more advanced alternative to the framework, which did not provide certain features like user authentication and authorization.I am not going to cover laravel features in this post. I will do that in my upcoming tutorials. In this tutorial I am just going to cover step by step laravel installation on windows using XAMPP.
Laravel Version and Requirements:At the time of writing this post stable version of laravel is 5.6 and it has following requirement to run on server. PHP = 7.1.3. OpenSSL PHP Extension. PDO PHP Extension.
Mbstring PHP Extension. Tokenizer PHP Extension. XML PHP Extension.
Ctype PHP Extension. JSON PHP ExtensionXAMPP:Dont worry about above requirements, your XAMPP has all the above extension by default. If just in case you don’t have xampp on your windows machine then read my post.Composer:Another thing which is must for laravel installation is “Composer”.
If you don’t know what is composer then in simple word “Composer is a tool for dependency management in PHP”. For more details and composer installation read my post. Steps: Laravel installation on windows using XAMPPNow you have both XAMPP and Composer on your windows machine. Lets install laravel by follow below points.
Open XAMPP control panel and click on Shell. Then terminal will open with a cursor in XAMPP folder. Type Composer and press enter just to check composer is working fine.
Type cd htdocs to go in htdocs folder. Now Type composer create-project -prefer-dist laravel/laravel mysite. Composer create-project -prefer-dist is a composer command, laravel/laravel is a repository and mysite is folder name that create on run time and laravel install in it. Laravel installation will take some time. After installation type cd mysite and then type php artisan serve. After typing php artisan serve. Laravel serve will start and show message like “Laravel development server started: “.
Don’t worry if you get different http address. Just copy and hit in the browser. Congratulation! You have successfully installed laravel on windows using xampp.For you convenience I am attaching screenshot of each step.
Step 1:Step 2:Step 3:Step 4:Step 5:Step 6:Step 7:Step 8:If you find any problem during installation feel free to comment on this post. I will try my best to answer your comment as soon as I can.Also Read:.
Requirements. PHP = 5.5.9. OpenSSL PHP Extension. PDO PHP Extension. Mbstring PHP Extension.
Tokenizer PHP ExtensionInstall XamppFirst of all, we need Xampp, so we can download it from the official page:ComposerAfter you've downloaded and installed Xampp, we need to install Composer.Composer is a PHP package manager that is integrated with Laravel Framework.