- What is funstaff/ref-lib-ris used for?
- It is a PHP library for writing bibliographic records in RIS tagged plain text format, which reference managers such as Zotero and EndNote can import. It fits academic repositories, research portals, library catalogs, publishing submission flows, or any Laravel app that already stores citation fields such as title, author, journal, year, volume, issue, pages, and DOI. It is not a general-purpose Laravel package and has no role unless you have a real RIS export requirement.
- How do I install funstaff/ref-lib-ris in a Laravel application?
- Install it with Composer using composer require funstaff/ref-lib-ris. There is no Laravel service provider, facade, migration, or publishable configuration to register. Create your own adapter service, such as App\Services\Citation\RisExporter, and call the library from there rather than from controllers, Eloquent models, or Blade templates.
- Is funstaff/ref-lib-ris a Laravel package?
- No, it is framework-agnostic PHP rather than a Laravel-specific package. It does not ship a service provider, facade, or config file, so Laravel integration is entirely your adapter code. That is fine as long as you keep it behind an interface you own and treat it as an implementation detail of your export service.
- Which Laravel and PHP versions does funstaff/ref-lib-ris support?
- The library is framework-agnostic, so Laravel compatibility depends mainly on its PHP constraint in composer.json. It is suitable for Laravel 9, 10, or 11 on PHP 8.x provided the package constraints allow your installed PHP version. Verify the package composer.json before committing because no visible release cadence or community support is documented.
- Does funstaff/ref-lib-ris parse RIS files or only write them?
- The package overview describes a writer to RIS data format, while its blurb also mentions parsing and building. Treat it primarily as an RIS writer and verify parsing support before relying on it for imports. If your feature requires reading RIS files, test that path explicitly or use a separate parser to avoid a scope surprise mid-sprint.
- How do I export RIS records from a Laravel application?
- Map your domain entities or Eloquent models to RIS fields inside a dedicated adapter, then delegate the actual RIS string generation to the library. Expose the adapter through a controller endpoint or queued job that returns text/plain with Content-Disposition attachment filename export.ris. For large exports, use a queued job and avoid putting RIS logic directly in the controller.
- Which RIS tags should I map for journal articles?
- Typical journal article output includes TY JOUR, TI, AU for each author, JO or JF for the journal, PY, VL, IS, SP, EP, DO, AB, and a closing ER tag. The exact mandatory fields should be decided for your segment and tested against the reference managers your users actually use. Keep the field mapping explicit in your adapter so it can be audited and changed independently of the library.
- Can funstaff/ref-lib-ris handle UTF-8, diacritics, long abstracts, and many authors?
- RIS is loosely specified, so UTF-8, diacritics, multi-line abstracts, author conventions such as AU versus A1 and A2, corporate authors, continuation lines, and per-type required tags are common failure points for minimal writers. Test with your real data, including papers with many authors and long abstracts, and do at least one manual import round-trip in Zotero or EndNote. Do not assume happy-path fixture tests prove compatibility with real reference managers.
- Is funstaff/ref-lib-ris safe to use in production?
- Its artifact health is low: a single maintainer, very few stars, no dependents, and no visible release cadence, so abandonment should be the default assumption rather than an edge case. MIT licensing means you can fork or vendor the code if needed, which is the main mitigation. Use it behind your own interface, add fixture tests plus a real import round-trip, and budget the adapter work rather than expecting upstream support.
- What alternatives or maintenance concerns should I consider before using funstaff/ref-lib-ris?
- For a narrow RIS writer, a roughly 150-line in-house implementation may remove the dependency for less than the cost of evaluating and owning an unmaintained library. If you keep the package, decide up front whether you will fork or vendor it and who owns that decision. Because the integration boundary is yours, replacing it with a fork or an in-house writer should be a small, reversible change.