{"id":19167064,"url":"https://github.com/psmb/psmb.registry","last_synced_at":"2025-05-07T13:40:29.306Z","repository":{"id":62531006,"uuid":"75054920","full_name":"psmb/Psmb.Registry","owner":"psmb","description":"Global registry of things with an Eel helper","archived":false,"fork":false,"pushed_at":"2022-12-08T12:30:18.000Z","size":37,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-19T22:35:00.162Z","etag":null,"topics":["neoscms"],"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/psmb.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":"2016-11-29T07:27:56.000Z","updated_at":"2022-12-08T12:29:58.000Z","dependencies_parsed_at":"2022-11-02T14:45:42.410Z","dependency_job_id":null,"html_url":"https://github.com/psmb/Psmb.Registry","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psmb%2FPsmb.Registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psmb%2FPsmb.Registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psmb%2FPsmb.Registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psmb%2FPsmb.Registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psmb","download_url":"https://codeload.github.com/psmb/Psmb.Registry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252888804,"owners_count":21820068,"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":["neoscms"],"created_at":"2024-11-09T09:35:38.800Z","updated_at":"2025-05-07T13:40:29.262Z","avatar_url":"https://github.com/psmb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Use with caution and only if you absolutely have to!**\n\nThis package provides you with a registry service and an Eel helper to get and set values on it.\n\n## Installation\n\n `composer require psmb/registry`\n\n## Usage\n\n#### Example\n\n```\nroot = T:Collection {\n    @context.blah = ${Registry.set('acc', 0)}\n    collection = ${[1,2,3]}\n    itemName = 'item'\n    itemRenderer = T:Value {\n        @context.blah = ${Registry.set('acc', item + Registry.get('acc'))}\n        value = ${Registry.get('acc')}\n    }\n}\n```\n\nThe following methods are available:\n\n* **set(key, value):** Sets a value by key\n* **get(key):** Returns a value by key\n* **getset(key, value):** Atomically sets key to value and returns the old value stored at key.\n* **increment(key):** Increment a value by key\n* **decrement(key):** Derement a value by key\n\n\nA key can consist of a single string or a path, separated with dots which addresses a value in a nested array.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsmb%2Fpsmb.registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsmb%2Fpsmb.registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsmb%2Fpsmb.registry/lists"}