Web Niraj
  • Facebook
  • Flickr
  • Github
  • Linkedin
  • Twitter
  • YouTube
Online portfolio, code examples and developer blog
  • About
  • Contact
  • Portfolio
  • WordPress
Search the site...
  • Home
  • Posts tagged "PHP"

Posts tagged "PHP"

Hiding .env Files using .htaccess

0

Let’s explore how to use .htaccess files to protect your .env file on Ubuntu servers running Apache.

Read More

Laravel, PHP, Security, Server Configuration

Creating Symlinks to Libraries in Composer

0

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.

Read More

Composer, Development, PHP, Tutorial

Dynamically Adding Passwords to PDFs using PHP

0

In a recent project, I was asked to modify uploaded PDFs to dynamically insert a user specified password to keep files secure. This tutorial shows you how this can be achieved using PDF libraries from Setasign.

Read More

PDF, PHP, Security, Tutorial

AWS SNS: Sending a SMS Message using the AWS PHP SDK

11

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.

Read More

Amazon Web Services, PHP, SMS, Tutorial

Laravel 5.x: Custom Password Reset Validation

0

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.

Read More

Input Sanitization, Laravel 5, Laravel 5.2, PHP, Security

Laravel 5.2: More SSH / SFTP Commands

1

I recently found that the SSH library from LaravelCollective uses was quite limited in what it allowed. However, by accessing the underlying libraries, you can extend the functionality available to interact further with SSH / SFTP servers.

Read More

Laravel 5, PHP, SFTP, SSH

Laravel 5.2: Trim All Input using Middleware

0

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.

Read More

Input Sanitization, Laravel 5, Laravel 5.2, PHP

Laravel 5.2: Running SSH / SFTP Commands In Your Scripts

1

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.

Read More

Laravel 5, PHP, SFTP, SSH

Creating / Editing a PDF Using PHP

36

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.

Read More

Composer, PDF, PHP, Tutorial

Laravel 5.x: Custom Validation Rules

2

This tutorial shows you how to extend Laravel 5.x to include custom validation rules. In this case, how to check if a field matches the current user’s stored password, when the user wants to change their password.

Read More

Laravel 5, PHP, Tutorial
1234

StackExchange / StackOverflow

profile for Niraj Shah on Stack Exchange, a network of free, community-driven Q&A sites

Support Me

Buy Me a Coffee

PSN Profile

Tags

ACL Amazon Amazon Web Services Android Android 4.4 KitKat Android 5.0 Lollipop Apache Backup Bug Command Line Cordova cPanel / WHM Facebook Facebook Graph API Facebook PHP SDK 4.0 Facebook Social Plugins Fan Page Firewall Flash Gadget Geolocation Google Nexus 5 Hacking HTML5 iOS JavaScript jQuery Laravel 5 Linux NodeJS Parse PDF PHP Plugin Portfolio PS4 Review Security Server SSH SSL Sysadmin Tutorial WordPress WordPress Plugins
© 2011-2025 Niraj Shah
  • Blog
  • Portfolio
  • WordPress
  • About Me
  • Contact Me
  • Privacy Policy
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Privacy Policy