Skip to content

s-damian/symfony-crud-example

Repository files navigation

Example of CRUD with Symfony 6 (6.2)

This example is made by Stephen Damian

Requirements

  • PHP 8.1 || 8.2

Summary

In this example of CRUD, there are:

Configuration - Symfony App

Clone github repository:

git clone git@github.com:s-damian/symfony-crud-example.git

In terminal, position yourself in the symfony-crud-example directory:

cd /your_path/symfony-crud-example/

Create and configure your .env.local file:

cp .env.local.example .env.local

In your .env.local file, you need to configure DATABASE_URL.

Install dependencies with composer:

composer install

Create the database:

php bin/console doctrine:database:create

Run migrations:

php bin/console doctrine:migrations:migrate

Configuration - Web Server

You have to configure your web server (Linux / Nginx or Apache / MySQL or PostgreSQL / PHP).

After configuring your Web Server, you can run these demo URLs

And you can Create / Read (listing or show a single article) / Update / Delete articles.

About

Symfony 6 (6.2) - Example of CRUD - PHP Framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published