{"id":15908069,"url":"https://github.com/dukeann/larasimple","last_synced_at":"2025-03-22T00:31:32.656Z","repository":{"id":23391410,"uuid":"97669057","full_name":"DukeAnn/larasimple","owner":"DukeAnn","description":"laravel框架核心精简版composer 搭建","archived":false,"fork":false,"pushed_at":"2022-03-26T01:18:42.000Z","size":28,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-13T14:32:13.959Z","etag":null,"topics":["laravel","mvc","mvc-application","mvc-framework","php","php7"],"latest_commit_sha":null,"homepage":null,"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/DukeAnn.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":"2017-07-19T03:31:07.000Z","updated_at":"2022-09-09T15:39:07.000Z","dependencies_parsed_at":"2022-07-27T04:02:09.047Z","dependency_job_id":null,"html_url":"https://github.com/DukeAnn/larasimple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DukeAnn%2Flarasimple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DukeAnn%2Flarasimple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DukeAnn%2Flarasimple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DukeAnn%2Flarasimple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DukeAnn","download_url":"https://codeload.github.com/DukeAnn/larasimple/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221820725,"owners_count":16886224,"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":["laravel","mvc","mvc-application","mvc-framework","php","php7"],"created_at":"2024-10-06T14:09:14.300Z","updated_at":"2024-10-28T11:21:04.087Z","avatar_url":"https://github.com/DukeAnn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# larasimple\n\n## laravel框架核心精简版composer 搭建\n\ncomposer直接拉取laravel核心MVC结构\n\n```json\n \"require\": {\n    \"php\": \"\u003e=5.6.4\",\n    \"illuminate/routing\": \"^5.5\",\n    \"illuminate/events\": \"^5.5\",\n    \"illuminate/database\": \"^5.5\",\n    \"illuminate/view\": \"^5.5\"\n  },\n  \"autoload\": {\n    \"psr-4\": {\n      \"App\\\\\": \"app/\"\n    }\n  }\n```\n\n### 数据库配置\n`larasimple/config/database.php`\n\n```php\n\u003c?php\n/**\n * Created by PhpStorm.\n * User: ADKi\n * Date: 2017/7/19 0019\n * Time: 10:28\n * @author DukeAnn\n */\nreturn [\n    'driver' =\u003e \"mysql\",\n    'host' =\u003e \"localhost\",\n    'database' =\u003e \"laratest\",\n    'username' =\u003e \"root\",\n    'password' =\u003e \"root\",\n    'charset' =\u003e \"utf8\",\n    'collation' =\u003e 'utf8_general_ci',\n    'prefix' =\u003e ''\n];\n```\n\n### 路由文件\n\n`app/Http/routes.php`\n\n## 使用方法\n\n创建一个名为laratest的数据库\n\n执行以下sql创建测试数据库\n```sql\n/*\nNavicat MySQL Data Transfer\n\nSource Server         : localhost\nSource Server Version : 50717\nSource Host           : localhost:3306\nSource Database       : laratest\n\nTarget Server Type    : MYSQL\nTarget Server Version : 50717\nFile Encoding         : 65001\n\nDate: 2017-07-19 11:56:41\n*/\n\nSET FOREIGN_KEY_CHECKS=0;\n\n-- ----------------------------\n-- Table structure for students\n-- ----------------------------\nDROP TABLE IF EXISTS `students`;\nCREATE TABLE `students` (\n  `id` int(10) NOT NULL AUTO_INCREMENT,\n  `name` varchar(255) NOT NULL,\n  `age` int(10) NOT NULL,\n  PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;\n\n-- ----------------------------\n-- Records of students\n-- ----------------------------\nINSERT INTO `students` VALUES ('1', 'wshuo', '21');\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdukeann%2Flarasimple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdukeann%2Flarasimple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdukeann%2Flarasimple/lists"}