{"id":17948698,"url":"https://github.com/medre/symfony_boilerplate","last_synced_at":"2026-05-10T06:50:13.825Z","repository":{"id":259295641,"uuid":"877514602","full_name":"medre/symfony_boilerplate","owner":"medre","description":"Symfony Boilerplate setup with Docker, Nginx, and PHP-FPM.","archived":false,"fork":false,"pushed_at":"2025-03-01T16:47:47.000Z","size":191,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T00:01:32.373Z","etag":null,"topics":["boiler","bootstrap5","symfomy"],"latest_commit_sha":null,"homepage":"https://erdemdurdu.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/medre.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-23T19:27:56.000Z","updated_at":"2025-03-01T16:47:50.000Z","dependencies_parsed_at":"2024-10-24T06:30:38.861Z","dependency_job_id":"956e1ea7-3166-4fc9-bb17-d16983b1513b","html_url":"https://github.com/medre/symfony_boilerplate","commit_stats":null,"previous_names":["medre/symfony_boilerplate"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medre%2Fsymfony_boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medre%2Fsymfony_boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medre%2Fsymfony_boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medre%2Fsymfony_boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/medre","download_url":"https://codeload.github.com/medre/symfony_boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247026387,"owners_count":20871364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boiler","bootstrap5","symfomy"],"created_at":"2024-10-29T09:09:10.455Z","updated_at":"2026-05-10T06:50:08.765Z","avatar_url":"https://github.com/medre.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symfony Boilerplate\n\nThis project is a [**Symfony 7.2**](https://symfony.com/doc/7.1/index.html) and\n[**Bootstrap 5.3**](https://getbootstrap.com/docs/5.3/customize/overview/)\nboilerplate application that integrates several essential services and includes\nbasic user authentication with login and register functionality setup with\nDocker, Nginx, and PHP-FPM. It includes configurations for various environments\nand services.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed on your machine:\n\n-   [Docker](https://www.docker.com/get-started)\n-   [Docker Compose](https://docs.docker.com/compose/install/)\n\n## Services Used\n\n-   **PHP-FPM**: Handles PHP processing.\n-   **Nginx**: Serves as the web server.\n-   **Database**: PostgreSQL \u0026 MySQL (optional) database service.\n-   **Redis**: Redis service to keep sessions\n-   **RabbitMQ**: Advanced Message Queuing Protocol (AMQP) and supports other\n    messaging protocols as well.\n-   **Mailpit**: Mailpit mailer for email service during development.\n-   **Adminer**: Basic database admin panel.\n\n## Installation\n\n1. Clone the Repository.\n\n    Start by cloning the project repository and navigating to the project directory:\n\n    ```\n    git clone https://github.com/medre/symfony-boilerplate.git\n    cd symfony-boilerplate\n    ```\n\n2. Set Up Environment Variables\n\n    The application uses a .env.local file for environment-specific configurations.\n    If it doesn’t already exist, copy the .env file and modify it as needed to override\n    variables like DATABASE_DSN or APP_URL:\n\n    ```\n    cp .env .env.local\n    # Edit .env.local to override variables\n    ```\n\n3. Build docker containers and start.\n\n    Use Docker Compose to build the containers and start them in the background:\n\n    ```\n    docker-compose build\n    docker-compose up -d\n    ```\n\n4. Create database structure.\n\n    Run the following command to apply database migrations and create the necessary\n    database structure:\n\n    ```\n    docker-compose exec app bin/console doctrine:migrations:migrate --no-interaction\n    ```\n\n5. Build Frontend Assets.\n\n    To build the application’s frontend assets, install the required Node.js dependencies\n    and run the Webpack build process:\n\n    ```\n    docker-compose exec app npm install\n    docker-compose exec app yarn install\n    docker-compose exec app yarn encore dev\n    docker-compose exec app php bin/console sass:build\n    ```\n\n6. Start/Restart Docker containers\n    ```\n    docker-compose stop\n    docker-compose up -d\n    ```\n\n#\n\nThe application is now set up and ready for use. You can access it by opening\nhttp://localhost in your browser. To get started, visit the Register page to create a new\nuser account. Once registered, you can log in using your credentials on the Login page\nand begin exploring the application.\n\n## Services Access\n\n-   Application: http://localhost:80\n-   Mailer: http://localhost:8025\n-   Database Admin: http://localhost:8080\n\n## Building Application\n\nThis boilerplate has a build.sh file for building the application.\nThe script is used to build the Symfony application inside a Docker container:\n\n-   Install dependencies\n-   Build frontend assets\n-   Run database migrations\n-   Clear caches\n\n```\n./build.sh\n```\n\nChange the file permission for execution if you got permission error.\n\n```\nchmod +x build.sh\n```\n\n## User Module\n\nThe application includes a user module with the following pages:\n\n-   **Login URL**: `http://localhost/login`\n-   **Register URL**: `http://localhost/register`\n\n## Makefile Description\n\nThe `Makefile` provides a set of commands to manage the project. Below is a simple\ndescription of the available commands:\n\n-   **build**: Build the Docker containers\n-   **start**: Start the Docker containers\n-   **container-list**: List all running containers\n-   **connect**: Connect to the running container\n-   **connect-app**: Connect to the PHP application container\n-   **migrate**: Run database migrations\n-   **clear-cache**: Clear the Symfony cache\n-   **build-app**: Build the application (includes building frontend assets)\n-   **migration**: Generate a new migration file\n-   **make-entity**: Create a new Doctrine entity\n-   **stop**: Stop all running containers\n\n### Example Makefile\n\n```\nmake build\nmake migrate\nmake connect app\nmake entity\n```\n\n## Domain Customization\n\nTo customize the domain for your Symfony application, follow these steps:\n\n1. **Update the `.env.local` file**:\n\n    Modify the `APP_URL` variable to reflect your custom domain.\n\n    ```env\n    APP_URL=http://your-custom-domain.com\n    ```\n\n2. **Configure Domain**:\n\n    Update the `compose.override.yaml` file to listen to your custom domain.\n\n    ```\n    ...\n    web:\n        environment:\n            - DOMAIN_NAME=your-custom-domain.com\n    ...\n    ```\n\n3. **Update your hosts file**:\n\n    Add an entry to your local `hosts` file to map the custom domain to your local\n    Docker IP address.\n\n    ```plaintext\n    127.0.0.1 your-custom-domain.com\n    ```\n\n4. **Restart Docker containers**:\n\n    After making these changes, restart your Docker containers to apply the new\n    configuration.\n\n    ```sh\n    $ docker-compose down\n    $ docker-compose up -d\n    ```\n\nBy following these steps, your Symfony application should be accessible via your\ncustom domain.\n\n## VSCode Setup\n\nTo enhance your development experience, the project includes a settings.json file\nconfigured for Visual Studio Code. This file helps manage common settings and integrates\ntools for better code quality and debugging. You can find or customize the settings\nin .vscode/settings.json.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any changes.\n\n## Contact\n\nFor any questions or support, please contact [info@erdemdurdu.com].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedre%2Fsymfony_boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmedre%2Fsymfony_boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedre%2Fsymfony_boilerplate/lists"}