Home > Download >  Library download > Data validation library

  • php ID card verification related classes, PHP automatically obtains the corresponding constellation function based on the ID number, based on the ID number, automatically returns the corresponding Constellation, will automatically return the corresponding zodiac sign based on the ID number, will automatically return the gender based on the ID number, Check Whether it is an ID number, extract the corresponding characters from the verification code string according to the serial number.

    Data validation library42362017-03-24
  • Introducing php parameter filtering and php data filtering, including the basic principles of php submitted data filtering, php simple data filtering Basic principles of php submission data filtering 1) When submitting variables into the database, we must use addslashes() for filtering. For example, our injection problem can be solved with just one addslashes(). In fact, when it comes to variable values, the intval() function is also a good choice for filtering strings. 2) Enable magic_quotes_gpc and magic_quotes_runtime in php.ini. magic_quotes_gpc can change the quotation marks in get, post, and cookie into slashes. magic_quotes_runtime can play a formatting role in data entering and exiting the database. In fact, this parameter was very popular back in the old days when injection was crazy. 3) When using system functions, you must use escapeshellarg(), escapeshellcmd() parameters to filter, so that you can use system functions with confidence. 4) For cross-site, both parameters of strip_tags() and htmlspecialchars() are good. All tags with html and php submitted by users will be converted. For example, angle brackets "<" will be converted into harmless characters such as "<". $new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES); strip_tags($text,); 5) For the filtering of related functions, just like the previous include(), unlink, fopen(), etc., as long as you specify the variables you want to perform the operation or filter the related characters strictly

    Data validation library41632017-03-17
  • introduces a simple PHP implementation of user login and verification code, which does not separate login and database query, cookie settings, Database settings,User gets value,VerificationSESSION,VERIFY COOKIE. ##

    Data validation library42912017-03-16
  • Introduced the PHP code to implement form data verification class, such as checking the legality of input content, judging Chinese and English, whether the string length meets the requirements, verifying mobile phone number and email address, generating thumbnails, obtaining IP addresses, and grabbing remote pictures. It is a very comprehensive form validation class that includes almost all validations, making it easy for everyone to learn and use.

    Data validation library47192017-03-10
  • Alice: A PHP library that allows the creation of a ton of devices/fake data for use in development or testing projects

    Alice allows you to create a ton of devices/fake data for use in development or testing projects. It gives you the necessary tools to make it easy to generate complex data with constraints in a readable, easy-to-modify way, allowing everyone on your team to adjust the schedule if needed.

    Data validation library38632017-02-21
  • Hybrid Auth: Provide verification function through Weibo/social networking sites and ID to achieve simultaneous login to the website function

    HybridAuth is an open source PHP class library that is used to provide verification functions through Weibo/social networking sites and IDs to achieve synchronous login to the website. It can be easily integrated with existing websites. You only need to reference a file and add a few lines of code to log in. Once authenticated, HybridAuth provides standardized information about the connected user. Furthermore, in addition to the authentication functionality, this library allows us to interact with social API clients to which the user is connected.

    Data validation library41252017-02-21