Projects tagged ‘php’ and ‘validation’


Jump to tag:

Projects tagged ‘php’ and ‘validation’

Filtered by Project Tags php validation

Refine results Project Tags javascript (8) forms (8) html (6) form (6) email (5) xhtml (4) ajax (4) php5 (4) oop (3) mysql (3) class (3) jquery (3)

[38 total ]

2 Users

Forms generation and validation is a PHP class that generates HTML forms supporting many built-in validation types on server and client sides. It supports template driven form HTML generation. It can ... [More] be extended with plug-in classes that provide additional controls, behaviors, validation rules, and rendering modes. There is one plug-in form submitting forms without page reloading via AJAX. [Less]
Created over 3 years ago.

2 Users
 

Inspekt is a PHP library that makes it easier to write secure web applications. Inspekt acts as a sort of 'firewall' API between user input and the rest of the application. It takes PHP superglobal ... [More] arrays, encapsulates their data in an "cage" object, and destroys the original superglobal. Data can then be retrieved from the input data object using a variety of accessor methods that apply filtering, or the data can be checked against validation methods. Raw data can only be accessed via a 'getRaw()' method, forcing the developer to show clear intent. Inspekt can also be used on arbitrary arrays, and provides static filtering and validation methods. Inspekt works in both PHP4 and PHP5, and has no external dependencies. Inspekt is built upon Chris Shiflett's original Zend_Filter_Input lib [Less]
Created over 2 years ago.

1 Users

Checks an email address against the followings RFCs: http://tools.ietf.org/html/rfc3696 http://tools.ietf.org/html/rfc5322 http://tools.ietf.org/html/rfc5321#section-4.1.3 ... [More] http://tools.ietf.org/html/rfc4291#section-2.2 http://tools.ietf.org/html/rfc1123#section-2.1 [Less]
Created 10 months ago.

1 Users
   

ComboValidation is a class meant to validate HTML forms via PHP and JavaScript in the simplest possible way. All you need to do is to create an array of form fields' information with the required ... [More] parameters and then call a few methods. It is customizable (validation and view), Always backward-compatible, cross-browser (IE6+, Firefox2+, Opera7+, Safari3+, and all Mozilla based browsers), very well tested, easily integratble, lightweight, extensible, PHP 4 and 5 compatible, multi-lingual, and XHML valid, and has AJAX support. [Less]
Created about 1 year ago.

1 Users
   

Rx is a system for simple, extensible cross-language schemata for data validation.
Created about 1 year ago.

0 Users

UpdateI won't have time in the near future to do bugfixes, new features etc. Feel free to fork any of the stuff in this repo with attribution. MPTT for KohanaThis project has been superseded by a ... [More] behaviour for ORM which does the same An implementation of MPTT for Kohanaphp using Kohana's ORM functionality. It is based on the implementation of MPTT for CI: http://www.codeigniter.com/wiki/Nested_Sets/ but some major modifications to support ORM, scopes and parent ids This means it is in functionality and syntax more similar to http://trac.symfony-project.com/wiki/sfPropelActAsNestedSetBehaviorPlugin See Documentation for more information about getting file and installing and such. Please submit bugs when you see them. Be clear about the exact circumstances of when a method breaks integrity of a table. Roadmap for MPTT Changelog for MPTT Tree behaviour for Kohana ORMBehaviour for Kohana ORM to do adjacency list trees. SpamCheck library for KohanaSpamCheck module for Kohana. Download libraries into a /libraries folder and you're done. Gives scores ranging between -100 (bad) and +100 (good). Or just a boolean Currently a links and a Akismet plugin Links $spam=new SpamCheck; $spam->add_check('links')->set_link_penalty(4)->set_max_links(2); $spam->add_field('content','some content'); $score=$spam->check(); if(!$spam->is_spam()) echo 'no spam';If there are more than 2 links a penalty is given -(number_of_links^4) else a bonus of 100 points. $spam=new SpamCheck; $spam->add_check('links',2)->set_link_penalty(4)->set_max_links(2); $spam->add_check('akismet')->setAPIKey('api_key')->setBlogURL('http://blog url'); $spam->set_weight('akismet',1); $spam->add_field('content','some content'); $score=$spam->check(); if(!$spam->is_spam()) echo 'no spam'; $spam->get_weighted_scores(); $spam->get_scores(); Uses akismet for spam check of comments. Bear in mind you should have more fields than the 'content' field for a better success rate. Will be documented later. The score is now an average between the links and the akismet plugin. The links plugin has a second argument giving it's weight. So the links plugin has the weight of 2 so is more important. Adding new plugins is not hard. Stuff like the Defensio API might be added, or a bad words list. Formation/ValidationForm generation and validation for Kohana. Latest release on the right Formation_Documentation [Less]
Created about 1 year ago.

0 Users

BetterValidationSimple clean validation library. Very new, wrote it after being both frustrated and inspired by Codeigniters validation library and PHP Validation by Benjamin Keen. BetterValidation ... [More] may sound a little conceited but I really only mean I built on some good ideas and made something that met my own requirements much better. Was only a working title but I couldn't think of anything else to name it and I wanted to offer it to the community so ... UsageThe current usage is quite similar to both Codeigniter and PHP Validation. Unlike Benjamin Keen's implementation I have nether required or allowed error messages to be passed in with the rules. This and any HTML formatting is left to the rest of your program to handle as a validation class is not the right place for them. Currently you would specify rules in an associated array: $myrules = array('name' => 'min_length[4]', 'username' => 'required|min_length[4]|max_length[128]', 'password' => 'required|min_length[4]', 'passconf' => 'required|matches[password]', 'email' => 'required|valid_email', 'account_number' => 'required|regex[/[\d]+\-[A-Z]{4}\-[\d]{2}/]');Then pass the array to a new ValidationRules instance: $rules = new ValidationRules($myrules);You can then run the validation: $rules->validate($data, false);Here I have assumed you have an associated array of data in a variable called $data, something similar to the following: $data = array('name' => 'me', 'username' => 'myusername', 'password' => 'MyPåssw00rd', 'passconf' => 'MyPåssw00rd', 'email' => 'user@example.com', 'account_number' => '1-ABCD-23');This example will fail validation, here is what output you will get in order to handle your response to the user: array(1) { ["name"]=> array(1) { [0]=> string(10) "min_length" } [Less]
Created 12 months ago.

0 Users

IntroductionThis email address validation function was originally released on AddedBytes.com in June 2004, and was updated following many comments and suggestions from readers. In July 2008, ICANN ... [More] announced that the TLD system would be opened up to allow the creation of many many more TLDs, making it more important than ever that email addresses are properly validated according to the standards that define them. Thus, the script was moved to Google Code (blog post), to enable easier maintenance and hopefully more people to contribute code. It was originally released under a Creative Commons License, but that has been changed to a BSD license which, among others things, allows commercial use. AimsThe aim of this project is to create an email address validation class (or function) that checks for technical validity1 in email addresses, the idea being then that a site can send an email to that address to verify ownership. 1) Certain parts of the standards could be considered security risks and are not in widespread use, so at the time of writing folding white space, control characters and comments are not considered valid by this script. Join!The main reason this code has been released under an open source license is to allow others to improve it. Best place to start is probably the Google Group. [Less]
Created about 1 year ago.

0 Users

PHP jQuery Validation plugin classThis PHP class complements the jQuery Validation plugin to provide server-side form validation with the same rules used in the jQuery Validation Plugin for the ... [More] client-side. The goal of the class is to have a single place where all form validation is handled, with uniform error messages and presentation. Licence: MITCopyright (c) 2009 Yes2web - Internet Solutions Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. [Less]
Created 3 months ago.