We would like to implement the backend with CakePHP
We have already forked your starter app here:
Code pushed, will update readme soon.
Awesome, I can't wait to see the final version! I also just created a logo that you can use for the repo:

Task list categorized by api
[x] Articles
[x] Auth
[x] Comments
[x] Profile
[x] Tags
@EricSimons The API is implemented and ready for peer review.
One thing I noticed is that MySQL is being used. I think MySQL is more common than PostgreSQL in the PHP community. Feel free to correct me if I'm wrong.
@EricSimons Do we have standards around which database should be chosen? Should database setup documentation be included in the repository?
Also, it looks like there is some generated code that can be removed. See src/Controller/PagesController.php.
My knowledge of PHP is limited, so feel free to correct me on anything I'm wrong about.
@brwr no โ we let the author choose the desired DB.
@phpnut great work! Have you tried pointing one of our frontend implementations at this backend to see if it works? Often times CORS will manually need to be enabled, etc. (btw I'm attempting to get this to run locally, but running into PHP ini issues โ will report back if/when I've got that sorted)
I don't see any database requirements. But cakephp can work with any database: both MySQL and Postgress are fully supported.
@EricSimons I've tested with angluar2 and react frontends. Both was working really nice.
The CakePHP ORM works with many databases, the user can choose whatever they want. The migrations setup will setup the tables as needed.
Drivers include Mysql Postgres Sqlite Sqlserver
@EricSimons what errors are you getting? Is it related to intl extension?
@phpnut yup that's the one โ any idea how to fix? (I'm a PHP noob :)
@EricSimons you need to have intl extension installed and enabled to use CakePHP. What OS are you using?
@phpnut Mac 10.12.1
@EricSimons ok, this is not compiled by default. MAMP for Mac has intl active by default, this would be the quickest way to download and test. If you would like to install intl extension on your vanilla php install on the Mac I can provide you with some steps to do this.
I am currently working on a plugin that can replicate the functionality CakePHP is using for translations and other features, but life has thrown some blockers. I plan to start on it again soon.
@phpnut okay perfect, will try out MAMP and see if that works :)
In the meantime, if there are any other CakePHP folks out there who can review the code and ๐ or ๐ that would be great!
@EricSimons, that would be great. We kinda make a living reviewing CakePHP code for others :)
I'll give this a test on my end as well.
Looks like CakePHP hates windows setup. I got it running fairly easily on a vagrant box. But the instructions are clearly lacking for a beginner. What are the api routes? I'm getting an error on accessing http://cake.dev/api/articles or any url. The error message is "Extension class OptionsHandlerExtension could not be found."
@SandeeshS What problems did you have with windows?
@SandeeshS it works on windows well as it was developed and tested there. There was old composer.lock file. Please pull and run "composer install" again.
@skie seems like the pull fixed it, got the api working fine now :+1: It's 1:30am here and i'm about to hit d bed. I'll do a thorough test in the morning and leave my feedback. Although at first glance there seem to be additional data coming through the api, like the tags count on tag, additional pagination info on articles.
Although at first glance there seem to be additional data coming through the api, like the tags count on tag, additional pagination info on articles.
Pagniation and tags count info is removed from response.
I think you should remove all empty (noise) folders, makes people easier to focus on the actual code inside the repo
e.g.
etc.
Also, it looks like there is some generated code that can be removed. See src/Controller/PagesController.php.
@brwr This is used by the default route if someone was to visit / vs /api so it is needed
@EricSimons all unused directories and files removed. You can fork the project back to your GitHub account now.
Official repo is online at https://github.com/gothinkster/cakephp-realworld-example-app and @phpnut and @skie have been added as collborators :)
@EricSimons Thanks, glad to see your project and can see it being very useful to people looking at different tools to develop their apps with. Nice way to compare, great work.
Are you going to be able to change the gif? media/stacks_hr.gif
@phpnut it's actually a screencap of our animation on https://thinkster.io :) I need to split it out and make it easily expandable, but yes absolutely I'll include CakePHP in there once I find a few minutes to do that!
Now that this repo is in the main org, I'm gonna go ahead and close this issue. Thanks again for the amazing work CakePHP folks!
@EricSimons you can use this SVG, it you need another format let me know.
Most helpful comment
I think you should remove all empty (noise) folders, makes people easier to focus on the actual code inside the repo
e.g.
etc.