{"id":20911565,"url":"https://github.com/bluzphp/skeleton","last_synced_at":"2025-05-13T07:32:21.609Z","repository":{"id":5373520,"uuid":"6560670","full_name":"bluzphp/skeleton","owner":"bluzphp","description":"Bluz skeleton application","archived":false,"fork":false,"pushed_at":"2022-04-15T08:33:20.000Z","size":9700,"stargazers_count":41,"open_issues_count":14,"forks_count":27,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-04-27T01:40:59.607Z","etag":null,"topics":["framework","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/bluzphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-06T10:57:30.000Z","updated_at":"2023-04-22T23:45:03.000Z","dependencies_parsed_at":"2022-07-07T22:38:49.434Z","dependency_job_id":null,"html_url":"https://github.com/bluzphp/skeleton","commit_stats":null,"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fskeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fskeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fskeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fskeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluzphp","download_url":"https://codeload.github.com/bluzphp/skeleton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225141094,"owners_count":17427214,"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":["framework","php"],"created_at":"2024-11-18T14:22:31.758Z","updated_at":"2024-11-18T14:22:32.397Z","avatar_url":"https://github.com/bluzphp.png","language":"PHP","readme":"Bluz, a lightweight PHP Framework\n=================================\nEasy to setup, easy to use. Skeleton application\n\n[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/bluzphp/main)\n\n## Achievements\n\n[![PHP \u003e= 7.3+](https://img.shields.io/packagist/php-v/bluzphp/skeleton.svg?style=flat)](https://php.net/)\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/bluzphp/skeleton.svg?label=version\u0026style=flat)](https://packagist.org/packages/bluzphp/skeleton)\n\n[![Build Status](https://img.shields.io/travis/bluzphp/skeleton/master.svg?style=flat)](https://travis-ci.com/bluzphp/skeleton)\n\n[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/bluzphp/skeleton.svg?style=flat)](https://scrutinizer-ci.com/g/bluzphp/skeleton/)\n\n[![Coverage Status](https://img.shields.io/coveralls/bluzphp/skeleton/master.svg?style=flat)](https://coveralls.io/r/bluzphp/skeleton?branch=master)\n\n[![Total Downloads](https://img.shields.io/packagist/dt/bluzphp/skeleton.svg?style=flat)](https://packagist.org/packages/bluzphp/skeleton)\n\n[![License](https://img.shields.io/packagist/l/bluzphp/skeleton.svg?style=flat)](https://packagist.org/packages/bluzphp/skeleton)\n\n## Installation\nBluz works with PHP 7.0 or later and MySQL 5.4 or later (please check [requirements](https://github.com/bluzphp/skeleton/wiki/Requirements))\n\n### I.a. From composer\nDownload `composer.phar`, it's easy:\n```bash\ncurl -s https://getcomposer.org/installer | php\n```\n\nRun `create-project` command (replace `%path%` ;):\n```bash\nphp composer.phar create-project bluzphp/skeleton %path% --stability=dev\n```\n\n### I.b. From repository\nGet Bluz skeleton source files from GitHub repository:\n```bash\ngit clone git://github.com/bluzphp/skeleton.git %path%\n```\n\nDownload `composer.phar` to the project folder:\n```bash\ncd %path%\ncurl -s https://getcomposer.org/installer | php\n```\n\nInstall composer dependencies with the following command:\n```bash\nphp composer.phar install\n```\n\n### I.c. With PhpStorm\nFor install you need any web-server (for Windows) and PhpStorm. dows) и PhpStorm.\n\nCreate project in PhpStorm:\n\n1. File -\u003e New project;\n2. Set the project name and location;\n3. In a Project type field choose Composer project;\n4. Check that radiobutton is set opposite \"Download composer.phar from getcomposer.org\", type in a search field \"bluzphp/skeleton\", select this package in Available packages window and click OK.\n5. After that file composer.phar and all dependencies will be loaded. \n\n### II. Configuration\nEdit your configuration's files `/path/to/application/configs/dev/*.php` (configuration for development environment).\n\u003e I think you need to change only `db.php` for first run\n\n### III. Setup database\nTo run the migrations, execute the command:\n```bash\n/path/to/vendor/bin/bluzman db:migrate\n```\n\nTo fill database with data example, execute the command:\n```bash\n/path/to/vendor/bin/bluzman db:seed:run\n```\n\n### IV.a. Run built-in web-server\nYou can run internal PHP web-server with simple console tool:\n```bash\n/path/to/vendor/bin/bluzman server:start --host[=\"...\"] --port[=\"...\"]\n```\n\n### IV.b. Use Apache\nOr create symlink to Apache document root (required FollowSymlinks option):\n\n```bash\n# for Linux\nln -s /path/to/public /path/to/web\n```\n\n```bash\n# for Windows\nmklink /D /path/to/web path/to/public\n```\n\n## Usage\n\nYou can create models, controllers and views with [Bluzman](https://github.com/bluzphp/bluzman) console tool, \nor following *old school style*:\n\n### Model\nModel consists from two classes `Table` and `Row`:\n```php\n\u003c?php\nnamespace Application\\Users;\nclass Table extends \\Bluz\\Db\\Table\n{\n    protected $table = 'users';\n    protected $primary = ['id'];\n}\n```\n\n```php\n\u003c?php\nnamespace Application\\Users;\n/**\n * @property integer $id\n * @property string $login\n */\nclass Row extends \\Bluz\\Db\\Row {\n\n}\n```\n\n### Controller\nController is file with anonymous function:\n```php\n\u003c?php\nnamespace Application;\n\n/**\n * @privilege ViewProfile\n * @cache     5 minutes\n * @param     integer $id\n * @return    array\n */\nreturn function($id) {\n    return [\n        'user' =\u003e Users\\Table::findRow($id)\n    ];\n};\n```\n\n### View\nView is native:\n```php\n\u003ch2\u003e\u003c?=$user-\u003elogin?\u003e\u003c/h2\u003e\n```\n\n## Documentation\n* [Framework wiki](https://github.com/bluzphp/framework/wiki)\n* [Skeleton wiki](https://github.com/bluzphp/skeleton/wiki)\n* [Bluzman docs](https://github.com/bluzphp/bluzman)\n\n## Demo\n* [Bluz Demo](http://bluz.demo.php.nixdev.co)\n\n## License\nThe project is developed by [NIX](http://nixsolutions.com) PHP team and distributed under [MIT LICENSE](https://raw.github.com/bluzphp/skeleton/master/LICENSE.md)\n\n[NIX](http://nixsolutions.com) has OEM License of [Redactor](http://imperavi.com/redactor/).\nFull text of Redactor License you can read at http://imperavi.com/redactor/license/\n\n## Vendors\n* [jQuery](https://github.com/jquery/jquery/)\n* [RequireJS](http://requirejs.org/)\n* [Twitter Bootstrap](http://getbootstrap.com/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluzphp%2Fskeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluzphp%2Fskeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluzphp%2Fskeleton/lists"}