{"id":23129956,"url":"https://github.com/yocto/yoclib-propertylist-php","last_synced_at":"2025-04-04T06:41:14.677Z","repository":{"id":169546583,"uuid":"645514840","full_name":"yocto/yoclib-propertylist-php","owner":"yocto","description":"This yocLibrary enables your project to encode and decode Property List files in PHP.","archived":false,"fork":false,"pushed_at":"2023-05-27T14:11:41.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T17:45:43.783Z","etag":null,"topics":["nextstep","php","propertylist","yoclib"],"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/yocto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-25T20:39:49.000Z","updated_at":"2023-06-02T14:46:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"21491bd2-3e0d-4b26-b359-48e0c100fcc7","html_url":"https://github.com/yocto/yoclib-propertylist-php","commit_stats":null,"previous_names":["yocto/yoclib-propertylist-php"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-propertylist-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-propertylist-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-propertylist-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-propertylist-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yocto","download_url":"https://codeload.github.com/yocto/yoclib-propertylist-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135125,"owners_count":20889420,"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":["nextstep","php","propertylist","yoclib"],"created_at":"2024-12-17T10:11:33.040Z","updated_at":"2025-04-04T06:41:14.640Z","avatar_url":"https://github.com/yocto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yocLib - Property List (PHP)\n\nThis yocLibrary enables your project to encode and decode Property List files in PHP.\n\n## Status\n\n[![CI](https://github.com/yocto/yoclib-propertylist-php/actions/workflows/ci.yml/badge.svg)](https://github.com/yocto/yoclib-propertylist-php/actions/workflows/ci.yml)\n\n## Installation\n\n`composer require yocto/yoclib-propertylist`\n\n## Use\n\n### Serialization\n\n```php\nuse YOCLIB\\PropertyList\\PropertyList;\n\n$object = ['string_data',true,false];\n\n$plist = new PropertyList;\n$plist-\u003esetObject($object);\n\n$xml = $plist-\u003eserialize(PropertyList::FORMAT_XML);\n```\n\n### Deserialization\n\n```php\nuse YOCLIB\\PropertyList\\PropertyList;\n\n$xml = '\u003cplist xlmns=\"https://www.apple.com/DTDs/PropertyList-1.0.dtd\" version=\"1.0\"\u003e\u003carray\u003e\u003cstring\u003estring_data\u003c/string\u003e\u003ctrue/\u003e\u003cfalse/\u003e\u003c/array\u003e\u003c/plist\u003e';\n\n$plist = new PropertyList;\n$plist-\u003edeserialize(PropertyList::FORMAT_XML,$xml);\n\n$object = $plist-\u003egetObject();\n```\n\n## Supported Formats\n\nA Property List comes in one of the following formats:\n\n| Format | Supported in this library | Description |\n| - | - | - |\n| ASCII | ⚠️ (No comments yet) | (The original, legacy format developed by NeXT for NeXTStep and later OPENSTEP) |\n| GNUstep ASCII | ⚠️ (No comments yet) | The NeXTStep/OPENSTEP ASCII format, but extended by GNU for GNUstep |\n| GNUstep Binary | ❌ | A binary variant of the property list developed by GNU for GNUstep |\n| XML | ✅ | Introduced in Apple's Mac OS X 10.0; currently version 1.0 |\n| Binary | ❌ | Introduced in Apple's MAC OS X 10.2; currently version 1.0 |\n| JSON | ✅ | Introduced in Apple's MAC OS X 10.7 |\n\n*Note: At the moment, the implementation of the ASCII formats in this library should not be trusted. It doesn't understand comments, and it has some white-space detection hardcoded, so it is possible that it fails on a valid ASCII Property List.*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyocto%2Fyoclib-propertylist-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyocto%2Fyoclib-propertylist-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyocto%2Fyoclib-propertylist-php/lists"}