I have always found it frustrating that failing the CSRF check in Laravel 5.x throws an exception. I would rather prefer it redirect the user back to the previous page, and get them to try again. So, I modified the VerifyCsrfToken.php middleware to do just that.
- Home
- Posts tagged "PHP" (Page 2)
Posts tagged "PHP"
Create Public / Privacy Encryption Keys and Encrypt / Decrypt Data using PHP
In a recent project, I’ve been using public/private key encryption to transmit data from a mobile application to an API, keeping sensitive information secure as a result. This tutorial explains how you can create your own keys, and then use them to encrypt or decrypt data using PHP and OpenSSL.
Encryption, PHP, Public / Private Keys, Security, TutorialFacebook API: Using the Facebook PHP SDK v4.1.x
As version v4.1 of the Facebook PHP SDK nears release (at time of writing), I though this would be a good time to explain how the new version works. Migrating your application from v4.0.x to v4.1.x will break your application.
Facebook, Facebook Graph API, Facebook PHP SDK 4.1, PHP, TutorialParse.com: Uploading a File Using the Parse PHP SDK (v1.0.x)
Using the official Parse PHP SDK, it’s quite easy to upload a file to Parse. This tutorial covers how to use a simple HTML form and a few lines of PHP to upload a file.
File Upload, Parse, PHP, TutorialAndroid 5.0 Lollipop Status Bar Customizer
Customise the status bar of Android devices running Android 5.0 Lollipop using this plugin. You can customise the colour for all pages, with specific colours for Posts and Pages.
Android, Android 5.0 Lollipop, PHP, WordPress, WordPress PluginsFacebook API: Posting As A Page using Graph API v2.x and PHP SDK 4.0.x
The Facebook API lets you post to Pages you administrate via the API. With the release of Graph API v2.x and the new Facebook PHP SDK v4.0.x, I’m updating my old tutorial to show how to achieve the same functionality using the newer Graph API and PHP SDK.
Facebook, Facebook Graph API, Facebook PHP SDK 4.0, PHP, TutorialParse.com: Using the Official Parse PHP SDK (v1.0.x)
Parse has released an official PHP SDK, and as usual it’s not very well documented. I’ve created this handy tutorial to help you get started.
Parse, Parse PHP SDK 1.0, PHPFacebook API: Getting Friends Using Graph API 2.0 and PHP SDK 4.0.x
With the introduction of the Facebook Graph API 2.0, access a user’s friends list was removed and limited to just friends who use the same application. However, Facebook added two new APIs to allow retrieval of Friend names (and indirectly a friend count).
Facebook, Facebook Graph API, Facebook Graph API 2.0, Facebook PHP SDK 4.0, PHP