{"id":21013478,"url":"https://github.com/heavenshell/php-silex-zf-validate","last_synced_at":"2025-03-13T16:20:36.376Z","repository":{"id":1509929,"uuid":"1766883","full_name":"heavenshell/php-silex-zf-validate","owner":"heavenshell","description":"Silex Zend Validate extension","archived":false,"fork":false,"pushed_at":"2011-12-31T08:09:20.000Z","size":108,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T02:12:10.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heavenshell.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-18T16:16:54.000Z","updated_at":"2014-01-18T15:53:29.000Z","dependencies_parsed_at":"2022-08-16T13:31:14.213Z","dependency_job_id":null,"html_url":"https://github.com/heavenshell/php-silex-zf-validate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fphp-silex-zf-validate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fphp-silex-zf-validate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fphp-silex-zf-validate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fphp-silex-zf-validate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heavenshell","download_url":"https://codeload.github.com/heavenshell/php-silex-zf-validate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243437970,"owners_count":20290865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T09:42:38.119Z","updated_at":"2025-03-13T16:20:36.353Z","avatar_url":"https://github.com/heavenshell.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Zend_Validate extension.\n\nThis extension for the Silex microframework enables use Zend Framework's Zend_Validate.\n\n\u003c?php\nrequire_once 'silex.phar';\nrequire_once dirname(__DIR__) . '/src/Zf1/ValidateExtension.php';\n\n$zendpath = getenv('ZF_PATH');\n\n$app = new Silex\\Application();\n$app-\u003eregister(new \\Zf1\\ValidateExtension(), array(\n    'zend.class_path' =\u003e $zendpath,\n));\n\n$app-\u003eget('/error', function () use ($app) {\n    $validator = $app['zend.validate']('alnum');\n    $result    = $validator-\u003eisvalid('abcd++');\n    if ($result === false) {\n        $mssages = $validator-\u003egetMessages();\n        var_dump($messages);\n    }\n\n    return $result;\n});\n\nNotice:\nRunning tests or examples code\n1. Set Zend Framework1 library to your include_path export ZF_PATH='/path/to/zf1/path'\n2. export include_path\n  $ export ZF_PATH='/path/to/zf1/path'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fphp-silex-zf-validate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheavenshell%2Fphp-silex-zf-validate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fphp-silex-zf-validate/lists"}