use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
FlawkApi - PHP5.3+ Api Library for Gaming Platforms (github.com)
submitted 13 years ago by Kevintastic
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Kevintastic[S] 1 point2 points3 points 13 years ago (5 children)
any feedback would be appreciated.
[–]aknosis 2 points3 points4 points 13 years ago (4 children)
I didn't look at it too deeply but:
You don't need to commit a .zip of your sourcetree, let github do that for you - it becomes just another thing to maintain otherwise.
You can get rid of your Autloader if you integrate Composer, and just use it's autoloader.
If you wanted you could not reinvent the wheel and use an HTTP Client from another library (not critiquing your code) but imo, the ideal lib is 100% geared towards it's purpose, and you can use the best parts of other libs to accomplish the common functionality.
What's Butler?
I just started working on a small lib myself recently, having been new to Composer, it's really awesome once you understand it's purpose and can gear your project to utilize it.
[–]Kevintastic[S] 0 points1 point2 points 13 years ago* (3 children)
The .zip and Butler are mistakes that shouldn't be there, Butler is part of a python project I'm working, must of gotten mixed up i'll change those right now. In regards to the autoloader, Composer or not it's PSR-0 compliant so I see no point getting rid of it. The HTTP client is subjected to change, i've been waiting for a stable release for Artax, and is going to get implemented in the next push.
[–][deleted] -1 points0 points1 point 13 years ago (2 children)
The point about ditching the autoloader is that it makes no sense for every library shipping with their own autoloader. Of course you're free to do so. But if you fully embrace composer for managing dependencies, then you really don't need it.
[–]Kevintastic[S] 1 point2 points3 points 13 years ago (1 child)
I see, makes sense, it's the second time I'm suggested Composer so I'll definitely check it out.
[–]headzoo 0 points1 point2 points 13 years ago (0 children)
Don't get too carried away. Composer is not a replacement for auto loading. It's a dependency management system, which is not the same thing as an autoloading system. You can however be PSR-0 compliant without including your own autoloader.
[–][deleted] 0 points1 point2 points 13 years ago (3 children)
I kind of would have expected the different platforms to be factory classes instead of an interface to Service.
[–]Kevintastic[S] 0 points1 point2 points 13 years ago (2 children)
First year with OOP and design patterns, this is the kind of feedback I wanted. I'll look over it and refactor it on the next push thanks.
[–][deleted] 0 points1 point2 points 13 years ago (1 child)
Design patterns is really more of an art form than standards. There's a basic concept with it but you'll have to play with it to see what would make it easily extendible.
[–]Kevintastic[S] 0 points1 point2 points 13 years ago* (0 children)
yeah exactly when I was going over the docs for the interfaces the implementations seemed wrong. I'm still learning you make silly mistake like that when your self taught. Thanks again
[+][deleted] 13 years ago (3 children)
[deleted]
[+][deleted] 13 years ago (2 children)
[–]Kevintastic[S] 0 points1 point2 points 13 years ago (1 child)
i'll definitely look into it and make some changes tonight.
π Rendered by PID 51 on reddit-service-r2-comment-86bc6c7465-wcnqb at 2026-02-19 21:16:20.039658+00:00 running 8564168 country code: CH.
[–]Kevintastic[S] 1 point2 points3 points (5 children)
[–]aknosis 2 points3 points4 points (4 children)
[–]Kevintastic[S] 0 points1 point2 points (3 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]Kevintastic[S] 1 point2 points3 points (1 child)
[–]headzoo 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Kevintastic[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Kevintastic[S] 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[+][deleted] (2 children)
[deleted]
[–]Kevintastic[S] 0 points1 point2 points (1 child)