seedproject-api/app/Helpers/Validate.php
Carlos Arias a447b17e69 Initial commit: SeedProject API framework
PHP MVC seed project with router, database layer, auth helpers,
LLM provider integrations, Stripe gateway, and console commands.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVcDB9cRQZRRmUivMHRQGL
2026-09-14 16:15:41 -05:00

26 lines
No EOL
484 B
PHP

<?php
class Validate {
public static function Email($f) {
if($f) {
if (!filter_var($f, FILTER_VALIDATE_EMAIL)) {
return false;
} else {
return $f;
}
} else {
$Error['Code']='';
$Error['msg'] = "Email Required";
return (json_encode($Error));
}
}
public static function sendlog($string){
error_log($string, 0);
}
} // End Class