{"id":15028677,"url":"https://github.com/tonicarreras/symfony-base","last_synced_at":"2025-04-09T20:30:20.895Z","repository":{"id":211925615,"uuid":"730233537","full_name":"tonicarreras/symfony-base","owner":"tonicarreras","description":"A Symfony-based project implementing a Hexagonal Architecture for modular and extensible development","archived":false,"fork":false,"pushed_at":"2024-03-04T19:58:02.000Z","size":216,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-28T20:21:06.422Z","etag":null,"topics":["ddd","docker","hexagonal-architecture","php83","symfony","symfony7"],"latest_commit_sha":null,"homepage":"","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/tonicarreras.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":"2023-12-11T13:40:51.000Z","updated_at":"2024-07-17T13:13:40.000Z","dependencies_parsed_at":"2024-02-04T07:22:57.456Z","dependency_job_id":"1a645286-5ff1-4e6e-9335-6a41d954407b","html_url":"https://github.com/tonicarreras/symfony-base","commit_stats":null,"previous_names":["tonicarreras/symfony-base"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonicarreras%2Fsymfony-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonicarreras%2Fsymfony-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonicarreras%2Fsymfony-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonicarreras%2Fsymfony-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonicarreras","download_url":"https://codeload.github.com/tonicarreras/symfony-base/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219855700,"owners_count":16556091,"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":["ddd","docker","hexagonal-architecture","php83","symfony","symfony7"],"created_at":"2024-09-24T20:08:52.017Z","updated_at":"2024-10-12T13:02:29.162Z","avatar_url":"https://github.com/tonicarreras.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symfony base\n\u003e - Version **Symfony 7.0.***\n\n## 📖 Table of contents \n- [Introduction](#-introduction)\n- [Installation](#-installation)\n    - [Docker](#-docker)\n    - [Manual installation](#-manual-installation)\n- [Bundles](#-bundles)\n- [Acknowledgments](#-acknowledgments)\n\n\n## 🌟 Introduction\nThis project is a template for creating a Symfony application using the hexagonal architecture. It is based on the [php-ddd-example](https://github.com/CodelyTV/php-ddd-example) project, but with some changes and improvements.\n\n## 🚀 Installation\n\n- **Clone the repository from GitHub.**\n\n```shell\ngit clone https://github.com/tonicarreras/symfony-base.git\n```\n\n### 🐳 Docker\n\n- **Build and run the Docker containers (Makefile).**\n\n```shell\n# Build and run Docker containers\nmake install\n``` \n- **JWT PEM**\n\n```shell\n## Recommended: With passphrase\nmake jwt-pp-config\n```\n\n```shell\n# Without passphrase\nmake jwt-config\n```\n\n- **Terminal**\n\n```shell\n# Enter the Docker container's terminal\nmake sh\n```\n\n- **Database MySql (MariaDB)**\n\n```\n- Database: symfony-database \n- user: root\n- password: root\n```\n\n- **Access the application**\n\nYou can access the application in your web browser at:\n- http://localhost:8000/\n\n### 🖥 Manual installation\n\n#### Prerequisites for manual installation\n- PHP 8.3 or higher\n- Composer\n- MySQL or MariaDB\n- Symfony CLI (optional)\n\n\u003e [!IMPORTANT]\n\u003e #### Required PHP extensions\n\u003e This project requires the following PHP extensions to be installed and enabled:\n\u003e - **ext-ctype**: Used for character type checking.\n\u003e - **ext-iconv**: For character encoding conversion.\n\u003e - **ext-pdo**: Essential for PHP Data Object (PDO) database connections.\n\n- Install dependencies:\n```shell\ncomposer install\n```\n\n- Database migrations:\n\nYou will need to configure the database connection by modifying the DATABASE_URL in the .env file to match your MySQL settings.\n```shell\nphp bin/console doctrine:migrations:migrate\n```\n\n- JWT PEM\n\n\u003e [!IMPORTANT]\n\u003e **LexikJWTAuthenticationBundle** requires a private and public key to sign and verify the JWT token. \n\u003e **JWT_PASSPHRASE=your_secret_passphrase** on **.env** file.\n\u003e This is to protect **/api** routes with JWT authentication.\n\n```shell\n## Recommended: With passphrase\nmkdir -p config/jwt\nopenssl genrsa -out config/jwt/private.pem -aes256 4096\nopenssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem\n```\n\n```shell\n# Without passphrase\nmkdir -p config/jwt\nopenssl genrsa -out config/jwt/private.pem 4096\nopenssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem\n```\n\n- Start Symfony Server:\n```shell\n#Symfony CLI\nsymfony server:start\n```\nFor more details on setting up Symfony, please refer to the [official Symfony documentation](https://symfony.com/doc/current/setup.html)\n\n## 🛠 Bundles\n[bundles.php](config/bundles.php)\n\n## 🤭 Acknowledgments\n\nThis project has benefited from ideas and code from the following projects and resources:\n- [php-ddd-example](https://github.com/CodelyTV/php-ddd-example): Example of a PHP application using Domain-Driven Design (DDD) and Command Query Responsibility Segregation (CQRS) principles keeping the code as simple as possible (CodelyTV).\n- [modular-monolith-example](https://github.com/codenip-tech/modular-monolith-example): Modular Monolith Example (Codenip).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonicarreras%2Fsymfony-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonicarreras%2Fsymfony-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonicarreras%2Fsymfony-base/lists"}