laravel in php

To start with Laravel in PHP, you need to follow these steps:

  1. Install a web server like Apache or Nginx and PHP on your system.
  2. Install Composer. Composer is a dependency manager for PHP, and it’s required for installing Laravel.
  3. Open the terminal and type composer global require laravel/installer. This command installs the Laravel installer globally on your system.
  4. Once the installer is installed, create a new project with the laravel new command, followed by the name of your project.
main.php
laravel new myproject
22 chars
2 lines
  1. Navigate to your project's directory and start the PHP development server by running the command php artisan serve.
  2. You can now visit your new Laravel application at the URL displayed in your terminal.

That's it! You can now start exploring and developing your application using the Laravel framework in PHP.

gistlibby LogSnag