microframe's Introduction
基于composer搭建php框架 一、前提: 1.需要先安装php 二、 1.安装composer 下载composer-setup.php https://getcomposer.org/doc/00-intro.md 然后运行 php composer-setup.php --install-dir=bin 将composer安装到bin目录下 2.更新composer composer update 3.创建composer.json文件 { "require": { } } 3. 再更新composer composer update 这一步会在工程根目录下生成下列文件和目录: vendor/autoload.php vendor/composer vendor/composer/autoload_classmap.php vendor/composer/autoload_namespaces.php vendor/composer/autoload_psr4.php vendor/composer/autoload_real.php vendor/composer/autoload_static.php vendor/composer/ClassLoader.php vendor/composer/installed.json vendor/composer/LICENSE 4.引入 第三方的路由包noahbuscher/macaw,其官网:https://github.com/NoahBuscher/Macaw 配置composer.json "require": { "noahbuscher/macaw": "dev-master" } 运行 composer update 再更新composer 5.在public目录的index.php中引入composer的自动加载功能
microframe's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.