0% found this document useful (0 votes)
8 views

Laravel_Symfony_Installation_Guide

This document provides a step-by-step installation guide for Laravel and Symfony frameworks. It outlines the requirements, installation steps, and optional configurations for both frameworks, including setting up a local development server and database connections. The guide is structured to facilitate easy installation for developers using either PHP framework.

Uploaded by

lxlhsk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Laravel_Symfony_Installation_Guide

This document provides a step-by-step installation guide for Laravel and Symfony frameworks. It outlines the requirements, installation steps, and optional configurations for both frameworks, including setting up a local development server and database connections. The guide is structured to facilitate easy installation for developers using either PHP framework.

Uploaded by

lxlhsk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Laravel & Symfony Installation Guide

Laravel Installation - Step by Step

Requirements:

- PHP >= 8.1

- Composer

- MySQL or SQLite

- Node.js & NPM (optional)

- Web server (Apache/Nginx or php artisan serve)

Installation:

Step 1: Check if Composer is installed

composer
--version

Step 2: Create a new Laravel project

composer
create-project
laravel/laravel
my-laravel-app

Step 3: Go inside your project

cd
my-laravel-app

Step 4: Run the local development server

php
artisan
serve

Optional: Setup environment

DB_CONNECTION
=
mysql
DB_HOST
=
Laravel & Symfony Installation Guide

127.0.0.1
DB_PORT
=
3306
DB_DATABASE
=
your_db
DB_USERNAME
=
root
DB_PASSWORD
=
your_password

Symfony Installation - Step by Step

Requirements:

- PHP >= 8.1

- Composer

- MySQL/PostgreSQL

- Symfony CLI (recommended)

- Web server or symfony serve

Installation:

Step 1: Install Symfony CLI

curl
-sS
https://get.symfony.com/cli/installer
|
bash

Windows users: Download from https://symfony.com/download

symfony
-v

Step 2: Create a new Symfony project

composer
create-project
symfony/skeleton
Laravel & Symfony Installation Guide

my-symfony-app
symfony
new
my-symfony-app
--webapp

Step 3: Go inside your project

cd
my-symfony-app

Step 4: Run the local server

symfony
serve

Step 5: Setup your DB in .env

DATABASE_URL
=
"mysql://root:[email protected]:3306/your_db"

Step 6: Create entity, migration & migrate

php
bin/console
make:entity
php
bin/console
make:migration
php
bin/console
doctrine:migrations:migrate

You might also like