{"id":25593952,"url":"https://github.com/professionalwiki/idgenerator","last_synced_at":"2025-07-28T05:33:50.794Z","repository":{"id":57044890,"uuid":"236488392","full_name":"ProfessionalWiki/IdGenerator","owner":"ProfessionalWiki","description":"Provides a parser function to generate unique incremental numeric IDs","archived":false,"fork":false,"pushed_at":"2025-05-15T12:11:42.000Z","size":41,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-17T05:46:52.538Z","etag":null,"topics":["id","idgenerator","mediawiki","mediawiki-extension"],"latest_commit_sha":null,"homepage":"https://professional.wiki","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ProfessionalWiki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"COPYING","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,"zenodo":null},"funding":{"github":"JeroenDeDauw","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-01-27T12:43:29.000Z","updated_at":"2025-05-15T12:11:45.000Z","dependencies_parsed_at":"2024-07-18T13:58:11.425Z","dependency_job_id":"c2fb0221-a0cb-4438-ae79-a1a9be58c879","html_url":"https://github.com/ProfessionalWiki/IdGenerator","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":0.5294117647058824,"last_synced_commit":"1d7683944f25ad02e38ef74b24a03e9f475b89b5"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ProfessionalWiki/IdGenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProfessionalWiki%2FIdGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProfessionalWiki%2FIdGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProfessionalWiki%2FIdGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProfessionalWiki%2FIdGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProfessionalWiki","download_url":"https://codeload.github.com/ProfessionalWiki/IdGenerator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProfessionalWiki%2FIdGenerator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267468399,"owners_count":24092334,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["id","idgenerator","mediawiki","mediawiki-extension"],"created_at":"2025-02-21T10:22:31.404Z","updated_at":"2025-07-28T05:33:50.758Z","avatar_url":"https://github.com/ProfessionalWiki.png","language":"PHP","funding_links":["https://github.com/sponsors/JeroenDeDauw"],"categories":[],"sub_categories":[],"readme":"# ID Generator\n\n[![Build Status](https://travis-ci.org/ProfessionalWiki/IdGenerator.svg?branch=master)](https://travis-ci.org/ProfessionalWiki/IdGenerator)\n[![Code Coverage](https://scrutinizer-ci.com/g/ProfessionalWiki/IdGenerator/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/ProfessionalWiki/IdGenerator/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ProfessionalWiki/IdGenerator/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ProfessionalWiki/IdGenerator/?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/professional-wiki/id-generator/v/stable)](https://packagist.org/packages/professional-wiki/id-generator)\n[![Download count](https://poser.pugx.org/professional-wiki/id-generator/downloads)](https://packagist.org/packages/professional-wiki/id-generator)\n\nmodern-timeline\n\nThe **ID Generator** extension provides a minimalistic sequential numeric ID generation function. It was created by [Professional.Wiki](https://professional.wiki/).\n\nThe wikitext `{{#next_number:}}` outputs `1` the first time it is used, then `2`, etc. \n\nInstallable and usable without running the \"update.php\" maintenance script. Created as an alternative to the IDProvider extension since it cannot be installed via Composer and, moreover, requires an extra database table.\n\n## Usage\n\nTo get a new numeric ID:\n\n    {{#next_number:}}\n\nThe above function will output a new number on every reparse of the page. If you want a number to be generated once,\nyou can use [MediaWiki's `subst` function](https://www.mediawiki.org/wiki/Help:Substitution) as follows:\n\n    {{subst:#next_number:}}\n\nYou can have multiple id sequences by providing an ID type. This type can be any string up to 60 characters.\n\n    {{#next_number:project}}\n\n**Number increment details**\n\n* IDs are incremented globally, not per page.\n* Increments happen on every parse.\n* MediaWiki might parse the parser function more than once per save, so the function output might go from 1 to 3.\n* You are guaranteed to get a higher ID on every generation. Usage is not tracked, so there is no reuse.\n\n**Example**\n\nA page with `{{#next_number:}} {{#next_number:}}` will output `1 2`, assuming the extension was just installed.\nIf the ID counter was already at 100, you'd get `101 102`. If you then refresh this page you'd get `103 104`.\n\n## Platform requirements\n\n* PHP 7.1 or later\n* MediaWiki 1.31 or later (and likely also older versions)\n\n## Installation\n\nThe recommended way to install ID Generator is using [Composer](https://getcomposer.org) with\n[MediaWiki's built-in support for Composer](https://professional.wiki/en/articles/installing-mediawiki-extensions-with-composer).\n\n### Step 1\n\nChange to the base directory of your MediaWiki installation. If you do not have a \"composer.local.json\" file yet,\ncreate one and add the following content to it:\n\n```\n{\n\t\"require\": {\n\t\t\"professional-wiki/id-generator\": \"~1.0\"\n\t}\n}\n```\n\nIf you already have a \"composer.local.json\" file add the following line to the end of the \"require\"\nsection in your file:\n\n    \"professional-wiki/id-generator\": \"~1.0\"\n\nRemember to add a comma to the end of the preceding line in this section.\n\n### Step 2\n\nRun the following command in your shell:\n\n    php composer.phar update --no-dev\n\nNote if you have Git installed on your system add the `--prefer-source` flag to the above command.\n\n### Step 3\n\nAdd the following line to the end of your \"LocalSettings.php\" file:\n\n    wfLoadExtension( 'IdGenerator' );\n\n## Contribution and support\n\nIf you want to contribute work to the project please subscribe to the developers mailing list and\nhave a look at the contribution guideline.\n\n* [File an issue](https://github.com/ProfessionalWiki/IdGenerator/issues)\n* [Submit a pull request](https://github.com/ProfessionalWiki/IdGenerator/pulls)\n* [Professional MediaWiki support](https://professional.wiki/en/support) is available via [Professional Wiki](https://professional.wiki/).\n\n\n## License\n\n[BSD 3-Clause \"New\" or \"Revised\" License (BSD-3-Clause)](/COPYING).\n\n## Release notes\n\n### Version 1.0.0\n\nReleased on January 27th, 2020.\n\nInitial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofessionalwiki%2Fidgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprofessionalwiki%2Fidgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofessionalwiki%2Fidgenerator/lists"}