{"id":21216887,"url":"https://github.com/lablnet/php-files-manipulation-class","last_synced_at":"2025-07-10T11:33:00.655Z","repository":{"id":57010523,"uuid":"114767784","full_name":"lablnet/PHP-files-manipulation-class","owner":"lablnet","description":"This package can manipulate files and directories in several ways.","archived":false,"fork":false,"pushed_at":"2019-10-05T05:21:28.000Z","size":47,"stargazers_count":22,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-05T13:11:27.596Z","etag":null,"topics":["change","delete","directory","docs","edit","file-management","files","filesystem","free","image","manipulate-files","multi-upload","open-source","php","php7","premission","update","upload","video","zip"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lablnet.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":"2017-12-19T13:22:50.000Z","updated_at":"2024-02-20T19:14:02.000Z","dependencies_parsed_at":"2022-08-21T13:10:17.397Z","dependency_job_id":null,"html_url":"https://github.com/lablnet/PHP-files-manipulation-class","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lablnet/PHP-files-manipulation-class","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FPHP-files-manipulation-class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FPHP-files-manipulation-class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FPHP-files-manipulation-class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FPHP-files-manipulation-class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lablnet","download_url":"https://codeload.github.com/lablnet/PHP-files-manipulation-class/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FPHP-files-manipulation-class/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264573276,"owners_count":23630453,"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":["change","delete","directory","docs","edit","file-management","files","filesystem","free","image","manipulate-files","multi-upload","open-source","php","php7","premission","update","upload","video","zip"],"created_at":"2024-11-20T21:56:08.288Z","updated_at":"2025-07-10T11:33:00.350Z","avatar_url":"https://github.com/lablnet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Files Class\nThis package can manipulate files and directories in several ways.\n\n\n## This package can manipulate files and directories in several ways.\n\nIt can perform several types of operations. Currently it can:\n\n1.  Create directory\n2.  Generate random string\n3.  Change file permission\n4.  Copy Files or folders\n5.  Move files and folders\n6.  Delete files and folders\n7.  Upload files with validation\n8.  Multiple file upload with validation\n9.  read/write files \n## Requirement\n\n- PHP\n- Composer\n\n## install\nrun this command\n``` composer require lablnet/files```\n\n## usage\n\n```php\n\u003c?php \n\nuse Lablnet\\Files;\n\nrequire_once \"../vendor/autoload.php\";\n\n$files = new Files();\n\n//Write on file \n$files-\u003eopen('test.txt','writeOnly')-\u003ewrite(\"I am test files\");\n\n// read the file\nvar_dump($files-\u003eopen('test.txt','readOnly')-\u003eread('test.txt'));\n\n//delete the file\n$files-\u003edelete('test.txt');\n\n\n//Make dir\n$files-\u003emkDir('name');\n\n//Change premission\n$files-\u003epermission('test.txt',0774);\n\n//Delete files\n$files-\u003edeleteFiles(['test.txt']);\n\n//Copy files\n$files-\u003ecopyFiles('/name','dir/',['test.txt']);\n\n//Move files\n$files-\u003emoveFiles('/','dir/',['test.txt']);\n\n\n//Delete dirs\n$files-\u003edeleteDirs(['test.txt']);\n\n//Copy dirs\n$files-\u003ecopyDirs('/','dir/',['test.txt']);\n\n//Move dirs\n$files-\u003emoveDirs('/','dir/',['test.txt']);\n\n//File upload\n$status = $files-\u003efileUpload($_FILES['file'],'/','image');\nvar_dump($status);\n\n//Multiple file upload\n$status = $files-\u003efilesUpload($_FILES['file'],'/','image',count($_FILES['file']['name']));\nvar_dump($status);\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flablnet%2Fphp-files-manipulation-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flablnet%2Fphp-files-manipulation-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flablnet%2Fphp-files-manipulation-class/lists"}