tan-tan-kanarek / github-php-client

MIT License
184 stars 120 forks source link

Refactoring: using namespaces and autoload #79

Closed williamokano closed 7 years ago

williamokano commented 8 years ago

Hi, I refactored your code in order to be compatible with composer as a lib (you can now publish on packgist).

I removed all the manual require_once's and fixed some code in order to being compatible with namespaces.

Also, I had to change the folders structure (actually, I just put the code folder under the src folder, so I could use PSR-4 autoload).

I know that still a lot of things to improve, but it's functional.

gfviegas commented 8 years ago

Spetacular!!! +1 👍

Confectrician commented 8 years ago

Dafuq. I just recognized "Ah a pull request" and then saw the huge amount of removings and additions. Great work. :+1:

williamokano commented 8 years ago

@Confectrician thanks m8

@tan-tan-kanarek could you check? thanks :)

tan-tan-kanarek commented 8 years ago

Hey, Although it is a great idea, I think you better maintain it as a different fork and therefore also as a different library.

I strongly recommend that you'll publish it as a different library for composer users.

williamokano commented 8 years ago

It's ok, that's why I open the pull request on a branch.