REST API in joomla 3.4 with SLIM Framework PART 1 In this tutorial, I am going to give you a quick introduction of REST API in Joomla 3.4 with SLIM Framework. To get started with Slim part-1 tutorial, here is small introduction about slim framework which is specifically mentioned on SLIM official website that: "Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs."
First of all let us take an example of creating a new SLIM instance: SLIM Hello World Application look like this. // create new Slim instance $app = new Slim(); // add new Route $app->get("/", function () { }); // run the Slim app $app->run();
echo "<h1>Hello Slim World</h1>";
Your first Slim application is ready now. If you access index.php through your browser, you should see a big â&#x20AC;&#x153;Hello Slim World.â&#x20AC;? To use Slim in Joomla, Include slim.php to use slim in your application, as a result slim will autoload all other necessary files that it needs, after this add your routes and create one or more instances of the Slim object.
Read Full Blog about REST API in joomla 3.4 with SLIM Framework on FindNerd Learn more informative tutorials about PHP at FindNerd's PHP developer forum which is also a good resource of PHP questions and answers required to enhance web development knowledge and skills.