https://github.com/willavelar/php-doctrine-basic-terminal
A basic example of student registration using the terminal with doctrine in php
https://github.com/willavelar/php-doctrine-basic-terminal
doctrine php php81 sqlite
Last synced: 3 months ago
JSON representation
A basic example of student registration using the terminal with doctrine in php
- Host: GitHub
- URL: https://github.com/willavelar/php-doctrine-basic-terminal
- Owner: willavelar
- Created: 2022-12-28T18:03:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-02T19:03:14.000Z (over 3 years ago)
- Last Synced: 2025-12-26T08:34:56.293Z (6 months ago)
- Topics: doctrine, php, php81, sqlite
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PHP Doctrine Basic Terminal
 
It is an example of using a doctrine with php via a terminal command and sqlite, in a student registration with a telephone relationship and courses linked to it.
## Installation
```bash
composer install
```
## How To Use
This this section explains how to use the command line with php execution.
- New student registration
```bash
php bin/student-insert.php '{name}'
```
- New student registration with phones
```bash
php bin/student-insert.php '{name}' '{phone1}' '{phone2}' ...
```
- New course registration
```bash
php bin/course-insert.php
```
- List of registered students information
```bash
php bin/student-list.php
```
- List of registered courses
```bash
php bin/course-list.php
```
- Relationship with student and course
```bash
php bin/student-enroll.php '{studentId}' '{corseId}'
```
- Number of registered students
```bash
php bin/student-count.php
```
- Search student by name
```bash
php bin/student-search.php
```
- Change student name
```bash
php bin/student-rename.php
```
- Delete student
```bash
php bin/student-delete.php
```