{"id":22080627,"url":"https://github.com/kot13/bootstrapi","last_synced_at":"2025-07-24T14:32:19.884Z","repository":{"id":57043022,"uuid":"62584573","full_name":"kot13/bootstrapi","owner":"kot13","description":"A better framework for building API with PHP. Built using Slim 3, Eloquent, Zend-ACL","archived":false,"fork":false,"pushed_at":"2018-05-19T12:56:41.000Z","size":1468,"stargazers_count":87,"open_issues_count":4,"forks_count":23,"subscribers_count":15,"default_branch":"master","last_synced_at":"2023-08-01T06:21:08.962Z","etag":null,"topics":["json-api","php","restful","slim3"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kot13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-04T19:46:15.000Z","updated_at":"2022-11-09T17:54:56.000Z","dependencies_parsed_at":"2022-08-24T01:21:07.185Z","dependency_job_id":null,"html_url":"https://github.com/kot13/bootstrapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kot13%2Fbootstrapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kot13%2Fbootstrapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kot13%2Fbootstrapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kot13%2Fbootstrapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kot13","download_url":"https://codeload.github.com/kot13/bootstrapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227449147,"owners_count":17777329,"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":["json-api","php","restful","slim3"],"created_at":"2024-11-30T23:16:13.152Z","updated_at":"2024-11-30T23:16:14.643Z","avatar_url":"https://github.com/kot13.png","language":"PHP","readme":"[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/bootstrapi/Lobby)\n[![Build Status](https://travis-ci.org/kot13/bootstrapi.svg?branch=master)](https://travis-ci.org/kot13/bootstrapi)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/kot13/bootstrapi/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/kot13/bootstrapi/?branch=master)\n[![Total Downloads](https://poser.pugx.org/pmurkin/bootstrapi/downloads)](https://packagist.org/packages/pmurkin/bootstrapi)\n[![License](https://poser.pugx.org/pmurkin/bootstrapi/license)](https://packagist.org/packages/pmurkin/bootstrapi)\n\n# bootstrapi\nA better framework for building API with PHP. Built using Slim 3, Eloquent, Zend-ACL\n\n## Feature\n* JWT authentication\n* Validation request\n* ACL role based\n* Support base CRUD operation\n* Filtering \u0026\u0026 Sorting \u0026\u0026 Pagination\n* DB migration\n* CLI-tools\n* JSONAPI negotiation\n* Generated documentation\n* Code generator commands\n* Log\n\n## Inside:\n* Slim3 http://www.slimframework.com/\n* ORM Eloquent https://laravel.com/docs/5.5/eloquent\n* Zend ACL https://zendframework.github.io/zend-permissions-acl/\n* JsonApi https://github.com/neomerx/json-api\n* JWT https://github.com/firebase/php-jwt\n* SwiftMailer http://swiftmailer.org/\n* ApiDocJS http://apidocjs.com/\n* PHP dotenv https://github.com/vlucas/phpdotenv\n\n## Demo\n[Example documentation](http://docs.bootstrapi.demostage.ru/)\n\n[Example client (Ember.js application)](http://bootstrapi.demostage.ru/)\n\n[Client repo](https://github.com/kot13/bootstrapi-client)\n\n## Requirements\n* PHP \u003e= 5.6\n* Composer\n* Nginx / Apache\n* MySQL / PostgreSQL\n* NodeJs \u0026\u0026 NPM \u0026\u0026 ApiDocJs (for docs generate)\n\n## Donate\nBitcoin payments: 1LLw4WuBz1oUSjQFntfQutD2T8mGZiA7pZ\n\n## Installing\n1) create new project\n```\n$ composer create-project -n -s dev pmurkin/bootstrapi my-api\n```\n\n2) change config files:\n```\n$ nano .env\n$ nano config/apidoc.php\n$ nano version.sh\n```\n\n3) configure server\n\nExample configuration for nginx:\n```\nserver {\n    listen 80 ;\n    server_name     hostname;\n    error_log       /path/to/nginx/logs/hostname.error.log;\n    access_log      /path/to/nginx/logs/hostname.access.log;\n    index           /frontend/index.html index.html;\n\n    root   /path/to/projects/hostname;\n\n    location ~* (.+\\.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|woff|woff2|ttf|eot|svg))$ {\n        root   /path/to/projects/hostname/frontend;\n        try_files       $uri =404;\n    }\n\n    location ~ /api/ {\n        if (!-e $request_filename) {rewrite ^/(.*)$ /public/index.php?q=$1 last;}\n    }\n\n    location ~ \\.php$ {\n        try_files $uri =404;\n        include fastcgi_params;\n        fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;\n        fastcgi_pass   127.0.0.1:9000;\n    }\n\n    location / {\n        if (!-e $request_filename) {rewrite ^/(.*)$ /frontend/index.html?q=$1 last;}\n    }\n}\n\nserver {\n    listen 80 ;\n    server_name     docs.hostname;\n    error_log       /path/to/nginx/logs/hostname.error.log;\n    access_log      /path/to/nginx/logs/hostname.access.log;\n    index           index.html;\n    root            /path/to/projects/hostname/docs;\n\n    location / {\n        try_files $uri $uri/ /index.html?$args;\n    }\n\n    location ~* (.+\\.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|woff|woff2|ttf|eot|svg))$ {\n        try_files $uri =404;\n    }\n}\n\nserver {\n    listen 80 ;\n    server_name     static.hostname;\n    error_log       /path/to/nginx/logs/hostname.error.log;\n    access_log      /path/to/nginx/logs/hostname.access.log;\n\n    root            /path/to/projects/hostname/public/uploads;\n\n    location ~* (.+\\.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|woff|woff2|ttf|eot|svg))$ {\n        add_header 'Access-Control-Allow-Origin' '*';\n        add_header 'Access-Control-Allow-Credentials' 'true';\n        add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, PATCH, DELETE, OPTIONS';\n        add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since';\n        try_files $uri =404;\n    }\n}\n```\n\nExample configuration for apache:\n```\n\u003cVirtualHost *:80\u003e\n   ServerName hostname\n   DocumentRoot \"/path/to/projects/hostname/\"\n\n   \u003cDirectory \"/path/to/projects/hostname/public/\"\u003e\n       # use mod_env for define environment variables\n       SetEnv APPLICATION_ENV develop\n       SetEnv SECRET_KEY mysecretkey\n   \n       # use mod_rewrite for pretty URL support\n       RewriteEngine on\n       # If a directory or a file exists, use the request directly\n       RewriteCond %{REQUEST_FILENAME} !-f\n       RewriteCond %{REQUEST_FILENAME} !-d\n       # Otherwise forward the request to index.php\n       RewriteRule ^api/(.*)$ /index.php?q=$1 [L]\n\n       # use index.php as index file\n       DirectoryIndex index.php\n\n       # ...other settings...\n       # Apache 2.4\n       Require all granted\n\n       ## Apache 2.2\n       # Order allow,deny\n       # Allow from all\n   \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n\n\u003cVirtualHost *:80\u003e\n   ServerName docs.hostname\n   DocumentRoot \"/path/to/projects/hostname/docs\"\n\n   \u003cDirectory \"/path/to/projects/hostname/docs\"\u003e\n       # use index.html as index file\n       DirectoryIndex index.html\n\n       # ...other settings...\n       # Apache 2.4\n       Require all granted\n\n       ## Apache 2.2\n       # Order allow,deny\n       # Allow from all\n   \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\n4) migration\n```\n$ php partisan migrate:up\n```\n\n5) migration\n```\n$ php partisan run:seed\n```\n\n6) generate documentation (optional)\n```\n$ php partisan generate:docs\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkot13%2Fbootstrapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkot13%2Fbootstrapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkot13%2Fbootstrapi/lists"}