For those times when all you need is a simple solution that enables you to write quick, yet powerful applications, Slim is a great contender amongst the myriad of available PHP frameworks.
At its core, Slim is a microframework designed to receive HTTP requests, route the requests to the relevant controllers, and return the corresponding HTTP responses.
Slim’s minimalist environment makes it ideal for the development of both microservices and APIs that consume, repurpose, or publish data.
In this tutorial, you’re going to learn how to create a RESTful API using Slim 4, PHP, and MySQL.
To complete this tutorial you will need the following:
Let's create the API!
To begin, you need to create the project’s root directory, named customers-api. You can do this in your editor/IDE or by running the following commands on a …
For many digital marketers, the landing page, also known as the "squeeze" or "destination" page, is that all important single page that is designed to capture the contact details of potential buyers.
Typically part of a bigger marketing-funnel sequence, the landing page is designed to lead visitors through a journey that eventually converts them into buyers. However, in situations where the campaign objective requires a personal contact with each new lead as they arrive, a funnel system will not do the job.
Thankfully, there’s a Twilio SMS API for that!
In this tutorial, you'll learn how to build a landing page with a fully functional PHP form that sends a “you’ve got a new lead” notification via email and SMS.
This tutorial assumes a basic understanding of HTML, CSS, Bootstrap, and PHP. In addition, to follow along, you need the following:
- PHP 7.4. Ideally version 8. …