Setting up an AWS Application Load Balancer (ALB) and keeping your target groups healthy can sometimes throw a few curveballs. I recently ran into an issue where a Laravel application’s ELB Health Checks were consistently failing.
- Home
- Posts tagged "PHP"
Posts tagged "PHP"
Hiding .env Files using .htaccess
Let’s explore how to use .htaccess files to protect your .env file on Ubuntu servers running Apache.
Laravel, PHP, Security, Server ConfigurationCreating Symlinks to Libraries in Composer
When developing a new library in PHP, it’s sometimes useful to symlink the library into a project while you work on it. Find out how to update your Composer config to achieve this.
Composer, Development, PHP, TutorialAWS SNS: Sending a SMS Message using the AWS PHP SDK
Amazon makes it really easy to send SMS messages worldwide using their SNS or Simple Notification Service. This tutorial shows you how you can send a SMS in less than 10 lines of code. This particular example uses composer to install the AWS SDK.
Amazon Web Services, PHP, SMS, TutorialLaravel 5.x: Custom Password Reset Validation
Having a strong password policy for your application is a important security requirement for any application. This tutorial shows you how you can apply this to Larvel’s PasswordController, which handles password resets.
Input Sanitization, Laravel 5, Laravel 5.2, PHP, SecurityLaravel 5.2: Trim All Input using Middleware
Laravel 5.2 is already good at sanitizing input data received from GET and POST data, but it doesn’t remove excessive spacing at the beginning or end of the data. Luckily, this is easy to achieve using Custom Middleware.
Input Sanitization, Laravel 5, Laravel 5.2, PHPLaravel 5.2: Running SSH / SFTP Commands In Your Scripts
Recently, I had to create a Laravel Artisan script that would log into a SFTP server, check if a certain file exists, and then upload / override the file. To achieve this, I used the SSH library from LaravelCollective. This tutorial covers how to log into a remote server using SSH / SFTP and upload or download files.
Laravel 5, PHP, SFTP, SSH

