{"repo":"c9s/maghead","free":true,"listed":false,"github":"https://github.com/c9s/maghead","clone":"git clone https://github.com/c9s/maghead.git","description":"The fastest pure PHP database framework with a powerful static code generator, supports horizontal scale up, designed for PHP7","language":"PHP","stars":477,"topics":["database","php","orm","model-schema","performance","mysql","pgsql","sqlite"],"license":null,"category":"databases-storage","readme_excerpt":"Maghead ========== Maghead is an open-source Object-Relational Mapping (ORM) designed for PHP7. Maghead uses static code generator to generate static classes that maps to the database records and methods, which reduces runtime costs, therefore it's pretty lightweight and extremely fast. With the simple schema design, you can define your model schema very easily and you can even embed closure in your schema classes. How fast is it? Currently it's the fastest ORM written in pure PHP. See the benchmark for more details. Automatic Migration Demonstration -------------------------------- Feature ------- Fast & Simple Configuration based on YAML format and compiled into PHP PDO, MySQL, Pgsql, SQLite support. Multiple data sources. Mix-in model. Powerful Migration Generator Upgrade & Downgrade of course. Automatic Migration: generate migration SQL automatically based on the schema diff. Schema/Database diff Design Concept -------------- - Function calls in PHP are very slow, so the model schema data will be built statically, Maghead converts all definitions (default value, validator, filter, valid value builder) into classes and static PHP array, this keeps these model classes very lightweight and fast. - In the runtime, all the same model objects use the same schema object, and we can reuse the prebuild data from the static schema class. - We keep base model class constructor empty, so when you are querying data from database, these model objects can be created with zero effort. Ge","default_branch":null,"files":null,"tree":[],"storefront":"/r/c9s","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/c9s/maghead/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}