Giter Club home page Giter Club logo

thinkphp-onlydb's Introduction

ThinkPHP-OnlyDB

分离出来的ThinkPHP的数据库ORM模型,可以由普通php文件调用

技术发展的很快,这个还是Tp3.2版本的,建议学习Think5.x吧

介绍

ThinkPHP是一个非常不错的开源项目。地址见 https://github.com/liu21st/thinkphp

在实际使用中,有时遇到一些情况,比如老项目的改造的兼容性,或者只是几个简单的php文件,又有点杀鸡用牛刀的感觉,而ThinkPHP中最优秀的特性之一,就是对数据库操作的封装 -- 简洁、安全、快速开发。

于是对ThinkPHP的数据库操作功能,单独提取了出来,做了一些简单的修改,能够让普通的PHP程序直接调用。

使用方式

见dbconn.php。

增加数据库驱动,请从ThinkPHP项目中,拷贝ThinkPHP/Db/Driver/下相应的文件。

thinkphp-onlydb's People

Contributors

geligaoli avatar

Watchers

James Cloos 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.