{"id":20177673,"url":"https://github.com/marciioluucas/phiber","last_synced_at":"2025-07-29T23:14:51.046Z","repository":{"id":62523769,"uuid":"82002915","full_name":"marciioluucas/phiber","owner":"marciioluucas","description":"Simple ORM in pure PHP","archived":false,"fork":false,"pushed_at":"2018-05-13T18:08:15.000Z","size":1515,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T04:38:44.712Z","etag":null,"topics":["mysql","orm","phiber","php-framework","php-orm"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marciioluucas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-15T00:25:10.000Z","updated_at":"2019-05-02T21:28:56.000Z","dependencies_parsed_at":"2022-11-02T15:31:50.768Z","dependency_job_id":null,"html_url":"https://github.com/marciioluucas/phiber","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marciioluucas/phiber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marciioluucas%2Fphiber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marciioluucas%2Fphiber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marciioluucas%2Fphiber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marciioluucas%2Fphiber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marciioluucas","download_url":"https://codeload.github.com/marciioluucas/phiber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marciioluucas%2Fphiber/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267779064,"owners_count":24143176,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["mysql","orm","phiber","php-framework","php-orm"],"created_at":"2024-11-14T02:16:53.273Z","updated_at":"2025-07-29T23:14:51.012Z","avatar_url":"https://github.com/marciioluucas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![HitCount](http://hits.dwyl.io/marciioluucas/phiber.svg)](http://hits.dwyl.io/marciioluucas/phiber)\n[![Build Status](https://travis-ci.org/marciioluucas/phiber.svg?branch=master)](https://travis-ci.org/marciioluucas/phiber)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/db9f41d9b8144d27ab90a0350cb25a28)](https://www.codacy.com/app/marciioluucas/phiber?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=marciioluucas/phiber\u0026amp;utm_campaign=Badge_Grade)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/marciioluucas/phiber/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/marciioluucas/phiber/?branch=master)\n[![GitHub issues](https://img.shields.io/github/issues/marciioluucas/phiber.svg)](https://github.com/marciioluucas/phiber/issues)\n[![GitHub forks](https://img.shields.io/github/forks/marciioluucas/phiber.svg)](https://github.com/marciioluucas/phiber/network)\n[![GitHub stars](https://img.shields.io/github/stars/marciioluucas/phiber.svg)](https://github.com/marciioluucas/phiber/stargazers)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/marciioluucas/phiber/master/license)\n[![Twitter](https://img.shields.io/twitter/url/https/github.com/marciioluucas/phiber.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:\u0026url=%5Bobject%20Object%5D)\n\n# Phiber - ALPHA version 1.2\n\n[![Imgur](http://i.imgur.com/Ad02NS2.png)](https://marciioluucas.github.io/phiber)\n\nPhiber is a simple ORM framework that helps you code your applications faster.\n\n  - MySQL integration\n  - Object Orientation\n  - Without SQL\n\n# New Features!\n\n  - Persistence\n  - Build websites, apps and api without a single SQL query line.\n  - Choose if you wanna make your SQL manually or by Object Mapping.\n  \n\n\nYou can also:\n  - See generated SQL\n  - Activate console logs.\n  \nThis library has been made by a Internet Systems Tecnology's student from Morrinhos - GO, Brazil.\n\n[![IFGoiano](https://img.shields.io/badge/IF-Goiano-brightgreen.svg)](https://www.ifgoiano.edu.br/morrinhos)\n\nCreator [Márcio Lucas]\n\n\u003e I made this library to increase my knowledge and to help my programmer friends build apps in PHP faster, because I see big difficulty to build SQLs and i think it is very boring. \n\nThis library are in alpha test, I don't recommend to production environments.\n\n### Technology\n\nPhiber uses just pure PHP and until now only has been builded the part to MySQL 5.5+.\n*In the next versions we will implement in BDs like PostgreSQL and Oracle.\n\n\n### Dependencies\n\nPhiber have only depdencies with Composer.\n\n\n### Installation\n\nPhiber requires  PHP 5.3.3+ to run and MySQL 5.5+.\n\nInstalling Phiber in your project.\n\nThe Phiber instalation is made by Composer, using the console code below:\n```sh\n$ composer require marciioluucas/phiber\n```\n\n### Config\n\nTo configure Phiber is very simple,\nyou have to create an archive called phiber_config.json in your project root path \nsame like this.\n\n$ROOT_PROJECT_PATH/phiber_config.json\n```json\n{\n  \"phiber\": {\n    \"language\": \"pt_br\", \n    \"link\": {\n      \"database_technology\": \"mysql\", \n      \"database_name\": \"phiber_test\", \n      \"url\": \"mysql:host=localhost;dbname=teste_phiber\", \n      \"user\": \"root\", \n      \"password\": \"\", \n      \"connection_cache\": true \n    },\n    \"log\": true, \n    \"execute_queries\": true\n  }\n}\n```\n\n### Examples\n```php\nInnerJoin example:\n$phiber = new Phiber();\n\n$phiber-\u003esetTable(\"user\");\n$phiber-\u003esetFields([\"user.id\",\"user.name\",\"user.email\"]);\n$phiber-\u003eadd($phiber-\u003erestrictions-\u003ejoin(\"user_address\", [\"pk_user\", \"fk_user\"]));\n$phiber-\u003eadd($phiber-\u003erestrictions-\u003eand($phiber-\u003erestrictions-\u003eequals(\"user.id\",\"1\"), $phiber-\u003erestrictions-\u003elike(\"user.name\",\"Marcio\") ));\n$phiber-\u003eadd($phiber-\u003erestrictions-\u003elimit(15));\n$phiber-\u003eadd($phiber-\u003erestrictions-\u003eoffset(5));\n$phiber-\u003eadd($phiber-\u003erestrictions-\u003eorderBy(['user.id ASC']));\n$phiber-\u003eselect(); // Execute query\necho $phiber-\u003eshow(); // After execute, prints the generated query\nGenerate-\u003e\nSELECT user.id, user.name, user.email FROM user INNER JOIN user_address ON pk_user = fk_user  WHERE (user.id = :condition_user.id AND user.name LIKE CONCAT('%',:condition_user.name,'%')) ORDER BY user.id ASC LIMIT 15  OFFSET 5;\n```\n\n### TODOS:\n\n - In the create method, make the support for the composition and others.\n - Split classes correctly\n - Do Relationables tables\n\nLicense\n----\n\nMIT\n\n\n**Free Software, Hell Yeah!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarciioluucas%2Fphiber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarciioluucas%2Fphiber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarciioluucas%2Fphiber/lists"}