Comments (5)
You can download the repository in the GitHub, install via Composer or PEAR.
You can using the classes normally just load in the application via autoload for example.
from validation.
Hi Michel, I use the method of pear to install the Validation and Loader and it works well, but if i just copy out the classes in Respect/Validation to work with my code, it could not work. Error: Class AllOf not found. Could you give me an example of using Validation without pear install which means i just download the library her, untar it and include the source file in my code. Thanks for your help and quick reply.
from validation.
Respect\Validation works with autoloading. Respect\Loader is a library for that, autoloading classes. You can copy files from both Validation and Loader and then run this lines in your app to enable autoload:
set_include_path('/full/path/to/classes' . PATH_SEPARATOR . get_include_path());
spl_autoload_register(include 'Respect/Loader.php');
In the folder '/full/path/to/classes' you must have a folder 'Respect', inside it a file 'Loader.php' and a folder 'Validation' with these contents inside: https://github.com/Respect/Validation/tree/develop/library/Respect/Validation
from validation.
yes, it worked. i think the reason why it didn't work before is lacking of autoload. Thank you for the help, alganet.
from validation.
Awesome! Let us know if we can help you further in anything =D
from validation.
Related Issues (20)
- Translation from array HOT 3
- Respect\Stringifier\stringify() undefined function HOT 1
- Given a multirule validator, is there a usage pattern for testing a single rule? HOT 1
- ~~Why does v::containsAny(array('mod'))->validate('mode') return true?~~ Because the expected functionality is confused with In ( https://respect-validation.readthedocs.io/en/latest/rules/In/ ) HOT 1
- messages translate HOT 1
- define different error messages HOT 2
- Is there a roadmap or future plan for this repository? HOT 10
- filterVal not correct working with FILTER_VALIDATE_INT HOT 1
- CountryCode validation for Montenegro HOT 2
- IntVal: ctype_digit gives a deprecated notice in PHP 8.1 HOT 3
- ctype_digit deprecation notice HOT 1
- Release 2.2.4 HOT 2
- Roadmap to 2.3 HOT 13
- Code coverage in local environment HOT 2
- [documentaiton] Validation for a full array of data HOT 3
- Formatter inconsequently stringifies values HOT 6
- IBAN Validation with non-breaking spaces HOT 1
- How do custom validation rules throw custom error messages? HOT 2
- How to compare two field HOT 1
- DateTime validation fails on valid ISO-8601 timestamp HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from validation.