dready92 / PHP-on-Couch

Data Access Library to access a CouchDB server with PHP.
http://dready.byethost31.com/index.php/display/view/192
GNU Lesser General Public License v3.0
246 stars 102 forks source link

feature/psr0 #46

Closed ClemensSahs closed 10 years ago

ClemensSahs commented 11 years ago

This PR make PSR-0 autoloading for version lower then php5.3

a dependency is https://github.com/dready92/PHP-on-Couch/pull/45

currently this PR is in progress

If somebody want help me with this PR, send me your work and i will merge this. Send me your Feedback ;)

DONE:

IN PROGRESS:

TODO:

ClemensSahs commented 11 years ago

@dready92 I'm currently I want to change the CodeIgniter -Framework implementation. If I understand your reason right you want a easy way to create a Client object with a config file. I have a in my Mind better solution like extends. I'm sorry but I use not CI so i can't test this.

here my GIST

ClemensSahs commented 11 years ago

@twiesenthal Any news from the PHPUnit stack? If something not ready its ok, it's in progress. ;)

twiesenthal commented 11 years ago

I have a lot to do atm and I want at least the couchAdminTest to be done before I push it.

ClemensSahs commented 11 years ago

@twiesenthal Ok its all fine. ;)

If your need some help. Push the branch in a public rep so we can split this work in little pieces.

dready92 commented 11 years ago

Is there any way to support psr/0 without breaking existing user code ? Is the renaming of all the classes an absolute necessity ?

twiesenthal commented 11 years ago

I guess you could provide psr0 compatible wrapper classes, that simply require the original classes

twiesenthal commented 11 years ago

@ClemensSahs i finished the couchAdminTest in my fork. but there are still lots of test that need to be refactored until the whole suite will run smoothly.