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
26 lines
No EOL
484 B
PHP
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
|