Giter Site home page Giter Site logo

zbage / hyperf-base Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kite88/hyperf-base

0.0 1.0 0.0 51 KB

这是一个基础的Hyperf,写好了登录 、jwt验证、完整的的CRUD demo,配置好跨域、redis缓存。 我配置的环境:Linux Ubuntu 20.04,php 7.4.3 (cli),swoole 4.5.2,mysql 8.0.22,redis 5.0.7

Shell 0.22% PHP 98.28% Dockerfile 1.50%

hyperf-base's Introduction

#运行命令 php bin/hyperf.php start

#访问路径 http://127.0.0.1:9501

#登录接口 http://127.0.0.1:9501/login POST body:{ "username":"test", "password":"123123" }

#退出登录接口 http://127.0.0.1:9501/logout POST headers:{ "token":"" }

#刷新token http://127.0.0.1:9501/token POST headers:{ "token":"" }

#CRUD Demo http://127.0.0.1:9501/user GET 查询列表 http://127.0.0.1:9501/user/{id} GET 查询单个 http://127.0.0.1:9501/user POST 创建 http://127.0.0.1:9501/user PUT 更新 http://127.0.0.1:9501/user/{id} DELETE 删除

hyperf-base's People

Contributors

kite88 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.