Download the PHP package gp/sys without Composer
On this page you can find all versions of the php package gp/sys. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package sys
Short Description A simple PHP MVC framework with ORM, autoload, DI, Validator, etc support for simple application
License MIT
Informations about the package sys
GP SYS Framework
GP SYS is HMVC based PHP Framework that simplifies your work in developing the web application.
Table of Contents
Requirements
- Installation
- Directory Structure
- Getting Started
- Features
- Classes
- DBQuery
- Database
- Model
- Events
- Usage
- Frame Queries
- Select Query
- Insert Query
- Update Query
- Delete Query
- Running Queries
- Transaction Management
- Creating a Custom DB Driver
- Creating an ORM Model
- Performing CRUD Operations with ORM Model
- Handling Relationships
- Events
- Creating and Loading ORM Models with Relations
- Example
- Contributing
- License
- Contact
- Author
Requirements
- PHP 8.1 or higher
- Composer (optional but recommended for autoloading).
Installation
- Clone the template:
composer install
php vendor\bin\run init -e=dev -s=1
-e - environment
-s - supress system errors.
project-root/ ├── config/ │ ├── constants.php │ ├── dev/ │ │ ├── config.php │ │ └── db.php │ ├── local/ │ │ ├── config.php │ │ └── db.php │ ├── prod/ │ │ ├── config.php │ │ └── db.php │ └── test/ │ ├── config.php │ └── db.php ├── console/ │ ├── commands.php │ ├── config.php │ └── Welcome.php ├── migrations/ │ ├── Migration_YYYYMMDD_HHMMSS_Description.php │ └── ... ├── src/ │ ├── DataModel/ │ │ └── App.php │ ├── Filters/ │ │ └── AppFilter.php │ ├── Module/ │ │ ├── App/ │ │ │ ├── Controller/ │ │ │ │ └── AppController.php │ │ │ ├── Module.php │ │ │ ├── routes.php │ │ │ └── View/ │ │ │ └── AppView.php │ │ └── Crud/ │ │ ├── Controller/ │ │ │ └── CrudController.php │ │ ├── Module.php │ │ ├── routes.php │ │ ├── autoloads.php │ │ └── services.php │ ├── Service/ │ │ └── AppService.php │ └── View/ │ └── login.php ├── tests/ │ └── ExampleTest.php ├── vendor/ ├── public/ │ └── index.php ├── composer.json └── README.md
$test = Container::get(Test::class);
php console/run migrate
src/Core/Command/
bash
php console/run create:module ModuleName
php console/run create:migration MigrationName
php console/run create:command CommandName
bash
php console/run migrate
php console/run rollback
bash
php console/run
This will execute your newly created command.
### Built-in Tool Shortcuts
The `console/run` script also provides shortcuts for common tools:
- `php console/run test` — Runs PHPUnit tests
- `php console/run phpstan` — Runs PHPStan static analysis
- `php console/run cs-fixer` — Runs PHP CS Fixer
---
### Contributing
Contributions are welcome! If you would like to contribute to gp_validator, please follow these steps:
- Fork the repository.
- Create a new branch (git checkout -b feature/- YourFeature).
- Make your changes and commit them (git commit -m 'Add some feature').
- Push to the branch (git push origin feature/YourFeature).
- Open a pull request.
- Please ensure that your code adheres to the coding standards and includes appropriate tests.
---
## License
This package is licensed under the MIT License. See the [LICENSE](https://github.com/periyandavar/gp_loader/blob/main/LICENSE) file for more information.
---
## Contact
For questions or issues, please reach out to the development team or open a ticket.
---
## Author
- Periyandavar [Github](https://github.com/periyandavar) (<[email protected]>)
---