Skip to content

Commit

Permalink
Add demo-project using symfony 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Zombaya committed Dec 9, 2023
1 parent 28c5acf commit 47526a7
Show file tree
Hide file tree
Showing 22 changed files with 5,801 additions and 1,374 deletions.
11 changes: 11 additions & 0 deletions demo/symfony7.x/.env
Expand Up @@ -18,3 +18,14 @@
APP_ENV=dev
APP_SECRET=6856f2521a71b9cace5415c5b1269956
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
DATABASE_PATH="var/data.db"
DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
###< doctrine/doctrine-bundle ###
6 changes: 6 additions & 0 deletions demo/symfony7.x/.env.test
@@ -0,0 +1,6 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
17 changes: 17 additions & 0 deletions demo/symfony7.x/.gitignore
@@ -1,3 +1,10 @@
# Ignore symlinks
/templates
/var/data.db
/.Halite.key

# Ignore locked versions of composer
composer.lock

###> symfony/framework-bundle ###
/.env.local
Expand All @@ -8,3 +15,13 @@
/var/
/vendor/
###< symfony/framework-bundle ###

###> symfony/phpunit-bridge ###
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###

###> phpunit/phpunit ###
/phpunit.xml
.phpunit.result.cache
###< phpunit/phpunit ###
28 changes: 28 additions & 0 deletions demo/symfony7.x/README.md
@@ -0,0 +1,28 @@
This demo-installation demonstrates a simple symfony 7.x-application using only attributes.

Annotations are no longer allowed in symfony 7.x

# How to use
```shell
# run `composer install` in parent-directory to create symlinks for shared files
cd ../
composer install
cd -

# Install packages
composer install

# Serve the application
## Using symfony-cli
symfony serve
## Using php-builtin-server ()
php -S localhost:8000 -t public
## Other possibility
### Use a webserver like apache or nginx


# Run unittests
vendor/bin/simple-phpunit
```


13 changes: 11 additions & 2 deletions demo/symfony7.x/composer.json
Expand Up @@ -7,15 +7,15 @@
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"doctrineencryptbundle/doctrine-encrypt-bundle": "@dev",
"symfony/console": "7.0.*",
"symfony/dotenv": "7.0.*",
"symfony/flex": "^2",
"symfony/framework-bundle": "7.0.*",
"symfony/runtime": "7.0.*",
"symfony/twig-bundle": "7.0.*",
"symfony/yaml": "7.0.*"
},
"require-dev": {
},
"config": {
"allow-plugins": {
"php-http/discovery": true,
Expand Down Expand Up @@ -64,5 +64,14 @@
"allow-contrib": false,
"require": "7.0.*"
}
},
"repositories": [
{
"type": "path",
"url": "../../"
}
],
"require-dev": {
"phpunit/phpunit": "^10.5"
}
}

0 comments on commit 47526a7

Please sign in to comment.