• 0Shopping Cart
  • Products
  • Freebies
    • HTML/CSS
    • JavaScript
    • PHP
    • PSD
    • jQuery
  • Web Resources
    • HTML/CSS
      • Templates
      • Frameworks
      • Tools
    • JavaScript
      • Frameworks
      • jQuery
      • MooTools
      • Libraries
      • Tools
      • Libraries
    • PHP
      • Frameworks
    • WordPress
      • Plugins
      • Themes
    • Design
      • Inspiration
      • GUI
      • Photography
    • Tutorials
      • Security
  • Account
    • Login
    • Register
    • Lost Password
    • Contact
    • Licenses
  • Search
  • Menu Menu

10 Best PHP Security Libraries for Developers

April 27, 2015/0 Comments/in Libraries, PHP, Web Resources/by Hemn Chawroka

PHP is still one of the most popular choices for creating dynamic websites. Although Ruby on Rails has become a favorite amongst developers, PHP thrives in a global environment with free code snippets and CMS engines like WordPress. There is lots of information on the web that PHP developers make use of. However, few of them are outdated and can guide anyone to write “bad code.

Probably this is the reason here at iProDev we have embarked ourselves to deliver you productive and useful tools and web applications in certain time span. For this roundup we have compiled a list of 10 Best PHP Security Libraries for Developers that will help them to create security interfaces for web applications. If you are aware of some other PHP Security Libraries please let us know by posting a comment below. Enjoy !!

1. PHP Intrusion Detection System

phpids
PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application. The IDS neither strips, sanitizes nor filters any malicious input, it simply recognizes when an attacker tries to break your site and reacts in exactly the way you want it to. Based on a set of approved and heavily tested filter rules any attack is given a numerical impact rating which makes it easy to decide what kind of action should follow the hacking attempt. This could range from simple logging to sending out an emergency mail to the development team, displaying a warning message for the attacker or even ending the user’s session.

2. PHP Password Lib

PHP-PasswordLib
PHP-PasswordLib aims to be an all-inclusive cryptographic library for all cryptographic needs. It is meant to be easy to install and use, yet extensible and powerful enough for even the most experienced developer.

3. PHPSecLib

phpseclib
phpseclib is designed to be ultra-compatible. It works on PHP4+ (PHP4, assuming the use ofPHP_Compat) and doesn’t require any extensions. For purposes of speed, mcrypt is used if it’s available as is gmp or bcmath (in that order), but they are not required.

4.TCrypto

tcrypto
TCrypto is a simple and flexible PHP 5.3+ in-memory key-value storage library. By default, a cookie will be used as a storage backend. TCrypto has been designed from the ground up with security in mind. Safe algorithms and modes. Automatic and safe initialization vector creation. Encryption and authentication key creation (Keytool) using strong randomness. Key rotation (versioned keys). TCrypto can be used as a scalable “session handler”. Especially scalable, if cookies are used as a storage backend. This is a bit like Ruby on Rails sessions.

5. HTML Purifier

html purifier
HTML Purifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist, it will also make sure your documents are standards compliant, something only achievable with a comprehensive knowledge of W3C’s specifications.

6. URLcrypt

urlcrypt
URLcrypt makes it easy to securely transmit short pieces of binary data in a URL. Use it to securely store things like user IDs, download expiration dates, and more. URLcrypt uses 256-bit AES symmetric encryption to securely encrypt data, and encodes and decodes Base 32 strings that can be used directly in URLs.

7. Hybrid Auth

hybridauth
HybridAuth is an open source PHP library for authenticating through multiple social services and ID providers. The services supported include OpenID,Facebook, LinkedIn, Google,Twitter, Windows Live, Foursquare, Vimeo, Yahoo, PayPal and more. It can be integrated easily into existing websites by inserting a file and few lines to the sign-in/up pages.

8. Security Check – Sensiolabs

security check
This tool is almost essential to both beginners and experienced PHP coders. The way it works is quite simple, you upload your .lockfile and it does the rest for you. If you look at the stats, the numbers of vulnerabilities found is quite staggering, don’t be surprised if your own projects might output some nasty stuff that you have missed.

9. PHP Login Project

phplogin
PHP-login Project is a script for adding authentication to your PHP projects. There are multiple tutorials available for installing it on various server configurations, as well as a minimal and one-file versions of the script.

10. SecurityMultiTool

security multitool
A multitool library offering access to recommended security related libraries, standardised implementations of security defences, and secure implementations of commonly performed tasks. The purpose of the library is to serve as both a useful set of utilities and to act as a set of reference implementations which can be learned from. It may be used by applications regardless of whether they are web application framework based or not. The use of a web application framework does not guarantee your security.

Tags: html purifier, php login, php secure, php security, php security libraries, php security library, security libraries, web application
Share this entry
  • Share on Facebook
  • Share on Twitter
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail
https://www.iprodev.com/wp-content/uploads/php-security.jpg 469 625 Hemn Chawroka https://iprodev.com/wp-content/uploads/iprodev-logo.svg Hemn Chawroka2015-04-27 12:55:032017-03-06 16:47:1210 Best PHP Security Libraries for Developers

Portfolio

  • WordPress Gallery ExtraJune 9, 2017 - 9:03 PM
  • mightySlider – Mighty Responsive Multipurpose SliderOctober 22, 2013 - 1:51 AM
  • iLightBox · Revolutionary Lightbox Plugin for WordPressFebruary 5, 2013 - 11:12 PM
  • iLightBox · Revolutionary Lightbox PluginDecember 29, 2012 - 7:59 PM

© Copyright - iProDev Foundation. All Rights Reserved.
  • Twitter
  • Facebook
  • Pinterest
  • Legal
  • Licenses
  • Donate
  • Contact
14 New Front-end Frameworks Worth ConsideringWeekly Design Inspiration (N.1)
Scroll to top

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.

OKLearn more

Cookie and Privacy Settings



How we use cookies

We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.

Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.

Essential Website Cookies

These cookies are strictly necessary to provide you with services available through our website and to use some of its features.

Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.

We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.

We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.

Other external services

We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.

Google Webfont Settings:

Google Map Settings:

Google reCaptcha Settings:

Vimeo and Youtube video embeds:

Privacy Policy

You can read about our cookies and privacy settings in detail on our Privacy Policy Page.

Disclaimer and Privacy Policy
Accept settingsHide notification only