{"id":25653868,"url":"https://github.com/lruizap/teammaster","last_synced_at":"2026-04-18T12:04:14.503Z","repository":{"id":279085091,"uuid":"929889391","full_name":"lruizap/TeamMaster","owner":"lruizap","description":"TeamMaster is a server-side web application built with PHP (MVC pattern)","archived":false,"fork":false,"pushed_at":"2025-02-23T16:47:55.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T17:34:23.004Z","etag":null,"topics":["composer","dotenv","php","sql"],"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/lruizap.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":"2025-02-09T16:32:47.000Z","updated_at":"2025-02-23T16:47:58.000Z","dependencies_parsed_at":"2025-02-23T17:34:24.888Z","dependency_job_id":"c75215a2-6893-46f4-805d-20096603579d","html_url":"https://github.com/lruizap/TeamMaster","commit_stats":null,"previous_names":["lruizap/teammaster"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lruizap%2FTeamMaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lruizap%2FTeamMaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lruizap%2FTeamMaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lruizap%2FTeamMaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lruizap","download_url":"https://codeload.github.com/lruizap/TeamMaster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240371755,"owners_count":19790888,"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":["composer","dotenv","php","sql"],"created_at":"2025-02-23T20:15:56.358Z","updated_at":"2026-04-18T12:04:14.457Z","avatar_url":"https://github.com/lruizap.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TeamMaster ⚽💼  \n\nTeamMaster is a **server-side web application** built with **PHP (MVC pattern)** for managing football teams, players, and coaches. The application allows user interaction through a clean and structured interface using **FastRoute, PDO, and Bootstrap**.  \n\n## 🚀 Features  \n\n- Manage **coaches**, **teams**, and **players**  \n- Assign players to teams (with a max limit)  \n- Transfer or dismiss players  \n- Full MVC architecture with structured controllers, models, and views  \n- Uses **FastRoute** for routing and **PDO** with prepared statements for database security  \n\n---\n\n## 🛠️ Technologies Used  \n\n- **PHP 8+** (MVC architecture)  \n- **MySQL** (database management)  \n- **FastRoute** (efficient routing)  \n- **Bootstrap** (UI styling)  \n- **PHP dotenv** (secure environment configuration)  \n\n---\n\n## 📂 Project Structure  \n\n```markdown\n\n/TeamMaster\n│── /model        # Database models  \n│   ├── Model.php  \n│   ├── equipoM.php  \n│   ├── jugadorM.php  \n│\n│── /controller   # Controllers (handling app logic)  \n│   ├── equipoController.php  \n│   ├── jugadorController.php  \n│\n│── /view         # Views (HTML \u0026 Bootstrap UI)  \n│   ├── detalleEntrenador.php  \n│   ├── detalleJugador.php  \n│   ├── traspasoJugador.php  \n│   ├── insertarJugador.php  \n│\n│── /config       # Database configuration  \n│   ├── database.php  \n│\n│── /public       # Public folder (index.php and static assets)  \n│   ├── index.php  \n│\n│── /vendor       # External libraries (installed via Composer)  \n│\n│── .env          # Environment variables (database credentials)  \n│── composer.json # Composer dependencies  \n│── README.md     # Project documentation  \n\n```\n\n---\n\n## ⚡ Installation  \n\n### 📌 Prerequisites  \n\nMake sure you have installed:  \n✔ **PHP 8+**  \n✔ **MySQL**  \n✔ **Composer**  \n\n### 📌 Setup  \n\n1️⃣ **Clone the repository**  \n\n```sh\ngit clone https://github.com/lruizap/TeamMaster.git\ncd TeamMaster\n```\n\n2️⃣ **Install dependencies**  \n\n```sh\ncomposer install\n```\n\n3️⃣ **Configure the database**  \n\n- Create a MySQL database named **`futbol_db`**  \n- Import the SQL file (`database.sql`) or run the script manually  \n- Set up the `.env` file with database credentials:  \n\n```env\nDB_HOST=localhost\nDB_NAME=futbol_db\nDB_USER=root\nDB_PASS=yourpassword\n```\n\n4️⃣ **Run the local server**  \n\n```sh\nphp -S localhost:8000 -t public\n```\n\n5️⃣ **Open in your browser**  \n\n```\nhttp://localhost:8000/\n```\n\n---\n\n## 🎯 Usage  \n\n- **View an entrenador's teams:**  \n\n  ```\n  http://localhost:8000/entrenador/{id}\n  ```\n\n- **View a team's players:**  \n\n  ```\n  http://localhost:8000/equipo/{id}\n  ```\n\n- **Transfer a player:**  \n  - Click \"Transfer\" → Select a new team  \n- **Dismiss a player:**  \n  - Click \"Dismiss\" → Confirm removal  \n- **Sign a new player:**  \n  - Click \"Sign Player\" → Fill out form  \n\n---\n\n## 📞 Contact  \n\nDeveloped by **lruizap**  \n📧 **Email:** \u003clruizap@gmail.com\u003e  \n🔗 **GitHub:** [github.com/lruizap](https://github.com/lruizap)  \n\n---\n\n## 📜 License  \n\nThis project is licensed under the **MIT License** – see the [LICENSE](LICENSE) file for details.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flruizap%2Fteammaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flruizap%2Fteammaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flruizap%2Fteammaster/lists"}