{"id":21540508,"url":"https://github.com/othercodes/integrity","last_synced_at":"2025-03-17T21:45:53.278Z","repository":{"id":15073910,"uuid":"17800275","full_name":"othercodes/integrity","owner":"othercodes","description":"Comprueba los hashes MD5 de un árbol de directorios para ver si han sido modificados.","archived":false,"fork":false,"pushed_at":"2015-07-01T11:02:33.000Z","size":204,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T08:12:30.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/othercodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-16T13:50:42.000Z","updated_at":"2016-04-01T15:16:04.000Z","dependencies_parsed_at":"2022-07-17T04:46:11.955Z","dependency_job_id":null,"html_url":"https://github.com/othercodes/integrity","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othercodes%2Fintegrity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othercodes%2Fintegrity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othercodes%2Fintegrity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othercodes%2Fintegrity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/othercodes","download_url":"https://codeload.github.com/othercodes/integrity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244117101,"owners_count":20400739,"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-24T04:19:12.038Z","updated_at":"2025-03-17T21:45:53.257Z","avatar_url":"https://github.com/othercodes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"integrity-md5-class\n===================\n\nComprueba los hashes MD5 de un árbol de directorios para ver si han sido modificados.\n\nUso\n===\n\nPodemos generar un archivo de hashes MD5 usando el metodo *getMD5Hashes()* este metodo generara un archivo con la fecha actual si no se especifica el nombre del archivo.\n\n```php\ninclude 'libraries/integrity.md5.class.php';\n$integrity = new integrity('path/to/folder/');\n$integrity-\u003egetMD5Hashes(); // archivo por defecto, por ejemplo: 20140316151603.md5\n// or\n$integrity-\u003egetMD5Hashes('custom_name.md5'); // archivo personalizado.\n```\n\nPara realizar la comprobacion debemos usar el metodo *checkMD5Hashes()* al cual le pasaremos el archivo con los hashes MD5 con los que deseemos realizar la comparacion.\n\n```php\ninclude 'libraries/integrity.md5.class.php';\n$integrity = new integrity('path/to/folder/');\n$files = $integrity-\u003echeckMD5Hashes();\nvar_dump($files);\n```\nNos devolvera un array con la lista de los archivos que an sufrido cambios.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothercodes%2Fintegrity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fothercodes%2Fintegrity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothercodes%2Fintegrity/lists"}