Skip to content

tregor/Tritonium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tritonium project!

Is it a framework or not?

GitHub stars Last Commit GitHub forks GitHub license

Tritonium is an MVC microframework that is used by me on some projects.

It contains some helpful services and libraries, a simple templating engine, and other features.


Navigation


Requirements

This library is supported by PHP versions 7.0 or higher.

Installation

You can clone the complete repository with Git:

$ git clone https://github.com/tregor/Tritonium.git

Or install it manually:

Download Tritonium project:

$ wget https://github.com/tregor/Tritonium/archive/master.zip

After downloading you will need to install the framework, init DB connection, and set some other settings.

First, edit config.php for your needs and init DB connection

nano config.php

To start the installation script you need to execute:

php tmd core/install

Available Methods

Available methods in this library:

Create new migration

To create any new migration SQL (install/update/delete operations) use this command:

php tmd migrations/create

Execute migrations

This command will execute every well-formatted migration SQL file:

php tmd migrations/migrate

TODO

  • Add templating engine and view renderer.
  • Make model system.
  • Develop Request service.
  • Make full PDO system, not MYSQL only.
  • Make bootstrapping out of autoloading.
  • Make an automatic class scanner-mapper
  • Add routing and implement controllers.
  • Move commands to TMD.
  • Implement global access for app vars
  • Exceptions system
  • Improve routing system with dynamical in-path params
  • Make ActiveRecord models
  • Improve ActiveQuery system, add OrWhere
  • Implement events system
  • Remake Migrations controller and core UI
  • Exceptions and Errors classification
  • Take care to in-framework Error Handler (Inline+Full mode+PrettyVarDumper)
  • Improve ErrorHandler, add Inline mode, SQL profilling and JS debugger
  • Improve templating engine and view renderer.
  • Dictionaries and ENUMs as services
  • Make Session and Cookies as JARs
  • Make Helpers
    • CSV helper, will create object from csv file
    • Array helper, jump thru array with string address
  • Installation wizard.
  • Improve wiki and in-code comments.
  • Add caching service built-in ActiveRecord
  • Refactor code.
  • Take a cup of coffee.

Contribute

If you would like to help, please take a look at the list of issues or the ToDo checklist.

Pull requests

License

This project is licensed under MIT license. See the LICENSE file for more info.

Copyright

By tregor 2021

Please let me know if you have any feedback or suggestions.

You can contact me on Facebook or through my email.

About

Is it framework or not?

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages