{"id":15296329,"url":"https://github.com/funstaff/reflibris","last_synced_at":"2026-01-06T02:05:38.146Z","repository":{"id":62508007,"uuid":"78014114","full_name":"Funstaff/RefLibRis","owner":"Funstaff","description":"This library provide a writer to RIS data format","archived":false,"fork":false,"pushed_at":"2019-03-21T12:17:26.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T05:43:39.785Z","etag":null,"topics":["php7","ris","writer"],"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/Funstaff.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-01-04T12:37:05.000Z","updated_at":"2022-02-12T08:58:32.000Z","dependencies_parsed_at":"2022-11-02T10:16:20.244Z","dependency_job_id":null,"html_url":"https://github.com/Funstaff/RefLibRis","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Funstaff%2FRefLibRis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Funstaff%2FRefLibRis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Funstaff%2FRefLibRis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Funstaff%2FRefLibRis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Funstaff","download_url":"https://codeload.github.com/Funstaff/RefLibRis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245407755,"owners_count":20610232,"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":["php7","ris","writer"],"created_at":"2024-09-30T18:10:06.340Z","updated_at":"2026-01-06T02:05:38.112Z","avatar_url":"https://github.com/Funstaff.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"RefLibRis\n===\n\n[![Build Status](https://travis-ci.org/Funstaff/RefLibRis.svg?branch=master)](https://travis-ci.org/Funstaff/RefLibRis)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Funstaff/RefLibRis/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Funstaff/RefLibRis/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/Funstaff/RefLibRis/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Funstaff/RefLibRis/?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/funstaff/ref-lib-ris/v/stable)](https://packagist.org/packages/funstaff/ref-lib-ris)\n[![License](https://poser.pugx.org/funstaff/ref-lib-ris/license)](https://packagist.org/packages/funstaff/ref-lib-ris)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/0ae60c3a-8405-4e4f-baae-f5d697e367a9/mini.png)](https://insight.sensiolabs.com/projects/0ae60c3a-8405-4e4f-baae-f5d697e367a9)\n\n* Author: Bertrand Zuchuat \u003cbertrand.zuchuat@gmail.com\u003e\n* License: MIT\n\nThis library provide a writer to RIS data format.\n\n## Installation\n\n1. Follow the instructions at http://packagist.org\n2. In your new project, create a `composer.json` file which requires\n   RefLibRis:\n\n```javascript\n{\n  \"require\": {\n    \"funstaff/ref-lib-ris\": \"\u003e=2.0\"\n  }\n}\n```\n\n## Use\n```php\n\u003c?php\n\nnamespace ...;\n\nuse Funstaff\\RefLibRis\\RecordProcessing;\nuse Funstaff\\RefLibRis\\RisDefinition;\nuse Funstaff\\RefLibRis\\RisMappings;\nuse Funstaff\\RefLibRis\\RisWriter;\n\n$mapping = [\n    'DEFAULT' =\u003e [\n        'TY' =\u003e ['type'],\n        'AU' =\u003e ['author'],\n        'TI' =\u003e ['title', 'title_secondary'],\n    ],\n    'BOOK' =\u003e [\n        'TY' =\u003e ['type'],\n        'AU' =\u003e ['author'],\n        'TI' =\u003e ['title', 'title_secondary'],\n        'ID' =\u003e ['recordid']\n    ]\n];\n\n$recordDb = [\n    'title' =\u003e ['History of the CDC PY - 1999'],\n    'author' =\u003e ['Behrens, J.', 'Behrens, A.'],\n    'type' =\u003e ['BOOK']\n];\n\n$risMappings = new RisMappings($mapping, 'DEFAULT');\n$recordProcessing = new RecordProcessing($risMappings);\n$record = $recordProcessing-\u003eprocess($recordDb);\n\n$writer = new RisWriter(new RisDefinition());\n$output = $writer-\u003eaddRecord($record)-\u003eprocess();\n```\nOutput:\n```ex\nTY  - BOOK\nAU  - Behrens, J.\nAU  - Behrens, A.\nTI  - History of the CDC PY - 1999\nER  -\n\n```\n\n## Found a bug\n\nIf you found a bug, *please* let me know. The best way is to file a report at \n[http://github.com/funstaff/RefLibRis/issues](http://github.com/funstaff/RefLibRis/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunstaff%2Freflibris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunstaff%2Freflibris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunstaff%2Freflibris/lists"}