{"id":26119299,"url":"https://github.com/4msar/zero-php","last_synced_at":"2025-12-07T10:07:27.189Z","repository":{"id":182993613,"uuid":"669428827","full_name":"4msar/zero-php","owner":"4msar","description":"An open source simple raw php MVC framework","archived":false,"fork":false,"pushed_at":"2023-07-22T10:30:22.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-20T22:32:12.739Z","etag":null,"topics":["hacktoberfest","mvc","php","raw-php"],"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/4msar.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,"governance":null}},"created_at":"2023-07-22T08:45:22.000Z","updated_at":"2023-10-09T14:40:50.000Z","dependencies_parsed_at":"2023-07-22T10:40:15.766Z","dependency_job_id":null,"html_url":"https://github.com/4msar/zero-php","commit_stats":null,"previous_names":["4msar/zero-php"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4msar%2Fzero-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4msar%2Fzero-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4msar%2Fzero-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4msar%2Fzero-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4msar","download_url":"https://codeload.github.com/4msar/zero-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242849777,"owners_count":20195370,"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","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":["hacktoberfest","mvc","php","raw-php"],"created_at":"2025-03-10T12:26:00.052Z","updated_at":"2025-12-07T10:07:22.167Z","avatar_url":"https://github.com/4msar.png","language":"PHP","readme":"# Zero MVC\n\nZero Logo\n![Logo](./assets/logo.jpg)\n\n## How to run\n\n-   At first change the DB credentials \u0026 app URL (to http://localhost:8900) in `.env` file\n-   Import the demo DB `db.sql` in your DB\n-   then open a terminal or command line in this project and run this command `php zero serve`.\n-   before run the php insure that your php bin folder already added in ENV path.\n-   or use static test domain by configure your server.\n-   then open your browser and put this (`http://localhost:8900`) in url.\n-   That's it.\n\n### Login Credentials\n\nDefault Admin Email \u0026 Password\n\n```\nhello@msar.me\npassword\n```\n\n### Docker\n\nIf you have docker installed in your system then you can run this project by docker.\n\n-   At first change the DB credentials \u0026 others config in `.env` file\n-   then open a terminal or command line in this project and run this command `docker-compose up -d`.\n-   then open your browser and put this (`http://localhost:8000`) in url.\n\n### Composer and Other\n\nIn this application by default has a AutoLoader to load all the files and classes. If you want to use composer then you can use it.\n\n-   At first run this command `composer install` in your terminal or command line.\n-   then open your browser and put this (`http://localhost:8900`) in url.\n\n## Documentations\n\nI follow MVC pattern here.\n\n-   In `views` folder have all the view files.\n-   In `app/Models` folder have all the models\n-   In `app/Controllers` folder have all the Controllers\n-   In `app/routes.php` file contain all the routes of the App.\n-   In `app/Classes` folder have all the necessary files and classes.\n\n### Available Commands\n\nHere is the list of available methods.\n\n-   `php zero serve` - To run the application\n-   `php zero make:controller \u003cControllerName\u003e` - To create a new controller\n-   `php zero make:model \u003cModelName\u003e` - To create a new model\n-   `php zero make:view \u003cname\u003e` - To create a new view file (you can pass the folder name with name like `folder.name` or `folder/name`)\n\n### Available Functions\n\nHere is the list of available functions.\n\n-   `env('ENV_KEY')` - To get the value of a ENV key\n-   `app('classPath')` - To get the instance of a class\n-   `view('viewName', $data)` - To load a view file\n-   `response('data', 'status')` - To send a response\n-   `auth()` - To get the instance of Auth class\n-   `request($key)` - To get the instance of Request class or get the value of a request key\n-   `input()` - To get the instance of Redirect class\n-   `flash('key', 'value')` - To set a flash message\n-   `flash('key')` - To get a flash message\n-   `isJson($data)` - To check a data is json or not\n-   `redirectTo('url')` - To redirect to a url\n-   `url($path)` - To get the full url of a path\n-   `assets($path)` - To get the full url of a assets path\n-   `dd($data)` - To dump and die a data\n-   `request_method($method)` - To check the request method\n\n### Available Classes\n\nHere is the list of available classes.\n\n-   `Auth` - To handle the authentication\n-   `Base` - A stdClass to handle the data\n-   `Controller` - To handle the controller\n-   `ConnectDB` - To handle the database\n-   `Collection` - To handle the collection of data\n-   `Input` - To handle the input data\n-   `Manager` - To handle the manager\n-   `Model` - To handle the model\n-   `Request` - To handle the request\n-   `Response` - To handle the response\n-   `Router` - To handle the router\n-   `Session` - To handle the session\n-   `View` - To handle the view\n-   `Validation` - To handle the validation\n\n### Structures\n\nUsers - Table - id, name, email, password\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4msar%2Fzero-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4msar%2Fzero-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4msar%2Fzero-php/lists"}