{"id":19793259,"url":"https://github.com/zguillez/php-xmlog","last_synced_at":"2025-10-09T16:03:02.688Z","repository":{"id":57090523,"uuid":"53749461","full_name":"zguillez/php-xmlog","owner":"zguillez","description":"PHP module for create XML and LOG files","archived":false,"fork":false,"pushed_at":"2019-10-14T17:16:35.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T04:35:07.890Z","etag":null,"topics":["log","packagist","php","xml"],"latest_commit_sha":null,"homepage":"https://zguillez.tools/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zguillez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-12T19:27:15.000Z","updated_at":"2023-03-20T07:27:56.000Z","dependencies_parsed_at":"2022-08-22T21:11:57.976Z","dependency_job_id":null,"html_url":"https://github.com/zguillez/php-xmlog","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zguillez%2Fphp-xmlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zguillez%2Fphp-xmlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zguillez%2Fphp-xmlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zguillez%2Fphp-xmlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zguillez","download_url":"https://codeload.github.com/zguillez/php-xmlog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241133101,"owners_count":19915336,"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":["log","packagist","php","xml"],"created_at":"2024-11-12T07:09:19.633Z","updated_at":"2025-10-09T16:03:02.601Z","avatar_url":"https://github.com/zguillez.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-xmlog\n\n![](https://reposs.herokuapp.com/?path=zguillez/php-xmlog)\n[![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)\n[![Join the chat at https://gitter.im/zguillez/php-xmlog](https://badges.gitter.im/zguillez/php-xmlog.svg)](https://gitter.im/zguillez/php-xmlog?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nPHP module for create XML and LOG files\n\n\n# Getting Started\n\n### Add package to composer.json\n\n`composer require zguillez/php-xmlog`\n\n\t//packaje.json\n\t{\n        \"require\": {\n            \"zguillez/php-xmlog\": \"^1.1.3\"\n        }\n    }\n\n# Usage:\n\n\trequire 'vendor/autoload.php';\n\n    use Z\\Log;\n\n    $params[\"filename\"] = \"register\";\n\t$params[\"path\"] = \"./logs/\";\n\n    $log = new Log($params);\n\nOn this example, \"register\" is the name of the log file and \"./logs\" is the folder on this files will be saved. **This folder must exits and have write permitions**.\n\n\t$log-\u003einsert('This is an update!');\n\nThis will create a file \"register.log\" with the text \"This is an update!\".\n\nFor create a XML file instead LOG file:\n\n\t$params[\"type\"] = Log::XML;\n\n## Options (true/false):\n\n### 1 dated:\n\n\t$params[\"dated\"]  = true;\n\nCreate a dated file name:\n\n* true: register_2016-03-12_17:10:17.log\n* false (default): register.log\n\n### 2 clear:\n\n\t$params[\"clear\"]  = true;\n\nOverwrite last file:\n\n* true: register.log (overwrite the file with new log text)\n* false (default): register.log (new log text will added in new line)\n\n### 3 backup:\n\n\t$params[\"backup\"] = true;\n\nBackup last file:\n\n* true: register_2016-03-12_17:10:17_backup.log\n* false (default): (no backup file)\n\n## Configuration:\n\nYou can override the log options by a config function.\n\n\t$log-\u003econfig([\"dated\"=\u003etrue]);\n\n# Example:\n\n\trequire 'vendor/autoload.php';\n\n\t$params[\"type\"]   = Log::LOG;\n\t$params[\"filename\"]   = \"register\";\n\t$params[\"path\"]   = \"./logs/\";\n\t$params[\"dated\"]  = false;\n\t$params[\"clear\"]  = false;\n\t$params[\"backup\"] = false;\n\n\t$log = new Log($params);\n\n\t$log-\u003econfig([\"dated\"=\u003etrue]);\n\n\t$log-\u003einsert('This is update one!');\n\t$log-\u003einsert('This is update two!');\n\n\n# Contributing and issues\n\nContributors are welcome, please fork and send pull requests! If you have any ideas on how to make this project better then please submit an issue or send me an [email](mailto:mail@zguillez.io).\n\n# License\n\n©2019 Zguillez.io\n\nOriginal code licensed under [MIT](https://en.wikipedia.org/wiki/MIT_License) Open Source projects used within this project retain their original licenses.\n\n# Changelog\n\n### v1.1.0 (September 9, 2016)\n\n* Configuration object\n\n### v1.0.0 (March 12, 2016)\n\n* Initial implementation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzguillez%2Fphp-xmlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzguillez%2Fphp-xmlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzguillez%2Fphp-xmlog/lists"}