Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Abdullaziz aldin
Courses Plus Student 52 Pointsget the value form mySQL to SWIFT by PHP
how can i get the value form mySQL to SWIFT by PHP
1 Answer

Abdullaziz aldin
Courses Plus Student 52 Pointsthere is any courses in treehouse for that ?

Simon Coates
28,695 Pointsintegrating-php-with-databases covers the PHP accessing the underlying db, but focuses on PHP serving up pages, not when PHP is used to create a rest api. Some of the php platform courses might cover the API use case. The difference between serving up pages and data is mostly just producing an output with a different format and mimetype and having additional security. The PHP track would cover the bulk of the PHP, but is a little light in terms of coverage of security. (if the data is sensitive), and probably doesn't cover PHP serving up XML or JSON (probably use a library for this). I haven't taken all of the PHP courses yet, and nothing in swift. (sorry)
Simon Coates
28,695 PointsSimon Coates
28,695 Pointsbuild an endpoint with php to server up your data in JSON or XML and have swift call it using http. You presumably want to add in some security.