{"id":13438617,"url":"https://github.com/php/pecl-file_formats-yaml","last_synced_at":"2025-04-05T18:11:57.567Z","repository":{"id":8182667,"uuid":"9608693","full_name":"php/pecl-file_formats-yaml","owner":"php","description":"YAML-1.1 parser and emitter","archived":false,"fork":false,"pushed_at":"2024-10-07T13:53:49.000Z","size":483,"stargazers_count":72,"open_issues_count":4,"forks_count":32,"subscribers_count":10,"default_branch":"php7","last_synced_at":"2025-04-05T09:34:27.775Z","etag":null,"topics":["pecl","php","yaml"],"latest_commit_sha":null,"homepage":"https://pecl.php.net/package/yaml","language":"C","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/php.png","metadata":{"files":{"readme":"README","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-04-22T20:51:10.000Z","updated_at":"2025-04-04T04:34:05.000Z","dependencies_parsed_at":"2023-01-11T20:10:48.299Z","dependency_job_id":"d7af7169-77d2-4a5e-a082-d50368d53aaf","html_url":"https://github.com/php/pecl-file_formats-yaml","commit_stats":{"total_commits":292,"total_committers":26,"mean_commits":11.23076923076923,"dds":0.4657534246575342,"last_synced_commit":"0e7b9974686fd0f4dbaa188914378c799fca01b4"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-file_formats-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-file_formats-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-file_formats-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-file_formats-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php","download_url":"https://codeload.github.com/php/pecl-file_formats-yaml/tar.gz/refs/heads/php7","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378152,"owners_count":20929297,"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":["pecl","php","yaml"],"created_at":"2024-07-31T03:01:06.881Z","updated_at":"2025-04-05T18:11:57.540Z","avatar_url":"https://github.com/php.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"The Yaml PHP Extension provides a wrapper to the LibYAML library.\n\nIt gives the user the ability to parse YAML document streams into PHP\nconstructs and emit PHP constructs as valid YAML 1.1 documents.\n\nFor more information about LibYAML see http://pyyaml.org/wiki/LibYAML.\nFor more information about YAML see http://yaml.org/\n\nRequirements:\n  * libyaml 0.1.x\n\n\nBUILDING ON UNIX etc.\n=====================\n\nTo compile your new extension, you will have to execute the following steps:\n\n1.  $ phpize\n2.  $ ./configure [--with-yaml]\n3.  $ make\n4.  $ sudo make install\n\n\nBUILDING ON WINDOWS\n===================\n\nThe extension provides the VisualStudio V6 project file\n\n  yaml.dsp\nTo compile the extension you open this file using VisualStudio,\nselect the apropriate configuration for your installation\n(either \"Release_TS\" or \"Debug_TS\") and create \"php_yaml.dll\"\n\nAfter successfull compilation you have to copy the newly\ncreated \"php_yaml.dll\" to the PHP\nextension directory (default: C:\\PHP\\extensions).\n\n\nTESTING\n========\n\nYou can now load the extension using a php.ini directive\n\n  extension=\"php_yaml.[so|dll]\"\n\nor load it at runtime using the dl() function\n\n  dl(\"php_yaml.[so|dll]\");\n\nThe extension should now be available, you can test this\nusing the extension_loaded() function:\n\n  if (extension_loaded(yaml))\n    echo \"yaml loaded :)\";\n  else\n    echo \"something is wrong :(\";\n\nThe extension will also add its own block to the output\nof phpinfo();\n\n\nCONFIGURATION\n=============\nini settings:\n  yaml.decode_timestamp=0 for no timestamp parsing\n  yaml.decode_timestamp=1 for strtotime parsing\n  yaml.decode_timestamp=2 for date_create parsing\n\n  yaml.decode_binary=0 for no binary decoding\n  yaml.decode_binary=1 for base64 binary decoding\n\n  yaml.decode_php=0 for no serialized object parsing\n  yaml.decode_php=1 for serialized object parsing\n\n/**\n * @param string $input String to parse as YAML document stream\n * @param int $pos Document to extract from stream (-1 for all, 0 for first, ...)\n * @param int $ndocs Number of documents found in stream\n * @param array $callbacks Content handlers for YAML nodes. Array of tag =\u003e handler\n * @return mixed Parsed data\n */\nyaml_parse ($input, $pos=0, \u0026$ndocs=null, $callbacks=null)\n\n/**\n * @param mixed $data Data to encode\n * @param int $encoding Output encoding\n * @param int $linebreak Output linebreak\n * @return string Encoded data\n */\nyaml_emit ($data, $encoding=YAML_ANY_ENCODING, $linebreak=YAML_ANY_BREAK)\n\n\nCREDITS\n========\n\nphp-yaml v0.1.0 through v0.3.0 was developed by Ryusuke Sekiyama.\n\nStarting with v0.4.0 the extension has been maintained by Bryan Davis.\nDevelopment of versions v0.4.0 - v1.1.0 funded by Keynetics Inc\n[http://keynetics.com/].\n\nInspiration and some implementation details have been taken from:\n  * php-syck [http://pecl.php.net/package/syck]\n  * MacRuby's libyaml wrapper\n      [http://www.macruby.org/trac/browser/MacRuby/trunk/ext/libyaml]\n  * LibYAML's examples [http://pyyaml.org/wiki/LibYAML]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp%2Fpecl-file_formats-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp%2Fpecl-file_formats-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp%2Fpecl-file_formats-yaml/lists"}