{"id":19370840,"url":"https://github.com/nijens/range","last_synced_at":"2026-04-15T20:02:52.334Z","repository":{"id":57026974,"uuid":"68444850","full_name":"nijens/range","owner":"nijens","description":"Ruby range syntax parser for PHP.","archived":false,"fork":false,"pushed_at":"2016-09-21T14:46:31.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T01:38:31.000Z","etag":null,"topics":["php","ruby-range-syntax","yaml"],"latest_commit_sha":null,"homepage":null,"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/nijens.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-17T10:03:41.000Z","updated_at":"2019-04-28T13:18:01.000Z","dependencies_parsed_at":"2022-08-23T15:31:19.799Z","dependency_job_id":null,"html_url":"https://github.com/nijens/range","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nijens%2Frange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nijens%2Frange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nijens%2Frange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nijens%2Frange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nijens","download_url":"https://codeload.github.com/nijens/range/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240492710,"owners_count":19810149,"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":["php","ruby-range-syntax","yaml"],"created_at":"2024-11-10T08:16:45.126Z","updated_at":"2026-04-15T20:02:47.287Z","avatar_url":"https://github.com/nijens.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Range\n\n[![Latest version on Packagist][ico-version]][link-version]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-build]][link-build]\n[![Coverage Status][ico-coverage]][link-coverage]\n[![SensioLabsInsight][ico-insight]][link-insight]\n[![StyleCI][ico-code-style]][link-code-style]\n\nRuby range syntax parser for PHP.\n\n## Installation using Composer\nRun the following command to add the package to the composer.json of your project:\n\n``` bash\n$ composer require nijens/range\n```\n\n## Usage\nParsing a range in Ruby syntax:\n``` php\n\u003c?php\n\nuse Nijens\\Range\\Range;\n\n$range = Range::parse('0..1');\n\necho $range-\u003egetFrom(); // Output: 0\necho $range-\u003egetTo(); // Output: 1\n```\n\nConverting a Range instance to Ruby range syntax:\n``` php\n\u003c?php\n\nuse Nijens\\Range\\Range;\n\n$range = new Range(0, 1, false);\n\necho $range; // Output: 0..1\n```\n\n\n[ico-version]: https://img.shields.io/packagist/v/nijens/range.svg\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg\n[ico-build]: https://travis-ci.org/nijens/range.svg?branch=master\n[ico-coverage]: https://coveralls.io/repos/nijens/range/badge.svg?branch=master\n[ico-insight]: https://img.shields.io/sensiolabs/i/9bf0a15d-ecbb-4e1f-b70e-46fa79ade72c.svg\n[ico-code-style]: https://styleci.io/repos/68444850/shield?style=flat\n\n[link-version]: https://packagist.org/packages/nijens/range\n[link-build]: https://travis-ci.org/nijens/range\n[link-coverage]: https://coveralls.io/r/nijens/range?branch=master\n[link-insight]: https://insight.sensiolabs.com/projects/9bf0a15d-ecbb-4e1f-b70e-46fa79ade72c\n[link-code-style]: https://styleci.io/repos/68444850\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnijens%2Frange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnijens%2Frange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnijens%2Frange/lists"}