Let’s explore how to use .htaccess files to protect your .env file on Ubuntu servers running Apache.
- Home
- Posts tagged "PHP"
Posts tagged "PHP"
Creating 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, SSHCreating / Editing a PDF Using PHP
In a recent project, I was asked to create a dynamically generated PDF with the user’s information. In my research, I found that using FPDF was the best the best way to achieve the client’s requirements. Here is a quick tutorial on how you can use a existing PDF with dynamic content using only PHP.
Composer, PDF, PHP, Tutorial