Defining MySQL database connection in the Slim 4 framework is pretty simple. In this slim framework 4 tutorial, we gonna create a project with Slim-Skeleton. If you are looking for Slim Framework 3, follow the link How […]
How to deploy slim framework on CPanel
In this post, I would like to show you deploying your slim framework project to CPanel (without SSH access). In general, for CPanel, the web root directory will be public_html directory. Slim3 Framework Authorization […]
Slim3 Framework Authorization with JWT (JSON Web Tokens)
In this post, I will show how you can secure your Slim3 Framework-based applications using JSON Web Token (JWT). To know more about JWT and How it works visit the official website(https://jwt.io). Download & Install […]
How to enable CORS in Slim3 framework
In this post, you will learn about Cross-Origin Resource Sharing. Http requests are restricted by the same-origin policy, which means where scripts can be loaded from the same Origin. Specifically, the protocol, domain, […]
Creating a RESTful API with Slim Framework 3 and Eloquent
Slim is a full-featured, open-source PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. It comes with a sophisticated URL dispatcher and middleware architecture that makes it […]
How to Use Eloquent in Slim Framework
The Eloquent ORM makes it incredibly easy to interact with a database. Today we’ll look at how we can use Eloquent to interact with our database inside your Slim Framework. The Eloquent ORM provides an ActiveRecord […]
How to connect to multiple Database – Slim Framework.
In the earlier post I wrote a tutorial on “how to connecting to database in slim framework“. In this post, I would like to show you, how you can connect to multiple databases in the same slim framework application. […]
Creating a RESTful API with Slim Framework 3, PHP/MySQl
Slim is a full-featured, open-source PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. It comes with a sophisticated URL dispatcher and middleware architecture that makes it […]
Slim3 Routes
The router component allows you to define routes that are mapped to callback handlers that should receive the request. The Slim Framework’s router is built on top of the nikic/fastroute component, and it is remarkably […]
How to install Slim Framework 3
Slim is a PHP micro framework that helps you write simple web applications and APIs quickly. It comes with a sophisticated URL dispatcher and middleware architecture that makes it ideal for static websites or API prototyping. […]