dyweb / bmfu Goto Github PK
View Code? Open in Web Editor NEWA php data wrapper for restful backend service
License: MIT License
A php data wrapper for restful backend service
License: MIT License
Because i have changed ci's database class, so it will throw Exception when having unit test.
But this wont happen in production and development environment. so i have to add another check
for create and update error (eg: column doesn't exist).
may set the environment to test in different mode. (database class has/not exception)
and we may need to use event emitter, we can use symphony's ?
I wrote a style guide in https://github.com/dyweb/bmFu/blob/master/doc/style.md
but now seems we have bifurcated.
@arrowrowe use countAll
for model methods instead of count_all
I think it's still not too late to have this discussion.
Advantage of snake_case
Advantage of CamelCase
@arrowrowe @ComMouse @swaylq @xsfour
so let's have a vote, ๐ for snake_case, ๐ for camelCase
you can use ilex's, but i suggest consider the one used in laravel in axws and the current one we are using in tongqu's tq
folder, the one in dywiki
is the newer version for that.
currently we are using 'dev-master' and it's better to have version number and we can install using zip.
use trait?
README.md
and project wikiAnd a Chinese version readme.....
eg: $row1 = User::find(1) ->
SELECT * FROM
userWHERE
id= 1
User::$cached_rows['1'] = $row1 // then we cache
$row2 = User::find(1) -> return $cached_rows[1] // no more queries
eg: user A $act = Act::find(1) dbquery, $redis_client->set('user/1',$user)
user B $act = Act::find(1) $redis_client->get('user/1')
eg: analysis for user like and dislike, friends etc. (table is large and these wont change very often)
the at15/restful may have the implementation ( have a look at `src/Dy/Restful/Resource
because bmfu can be mounted to controller directly. they should get the user input and give correct
response. even if the request is invalid or contain injection.
laravel's TestCase can use $this->call to use http methods. we can learn from them.
just for convenient, so we can catch it in the router
Do we need to deal with relation tables & join staff? If yes, we need to extend the model to support it. @at15 @swaylq @arrowrowe @xsfour
allow using the model to filter the user input, instead of write it in every controller
not all table need these two columns, eg: notification table doesn't need update_time.
add some method or const in order to enable/disable it when create
and update
Do we need to realize it? If yes, then
insert_batch
, update_batch
?Needs further discussion.
https://ocramius.github.io/ProxyManager/docs/lazy-loading-value-holder.html
this might fix all the boot methods before every method call
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.