{"id":18550280,"url":"https://github.com/xp-forge/neo4j","last_synced_at":"2026-03-01T18:02:37.565Z","repository":{"id":51363922,"uuid":"105367705","full_name":"xp-forge/neo4j","owner":"xp-forge","description":"Neo4J connectivity for XP Framework","archived":false,"fork":false,"pushed_at":"2025-05-04T17:04:42.000Z","size":80,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-20T19:16:22.534Z","etag":null,"topics":["neo4j","php","xp-framework"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xp-forge.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-09-30T12:15:42.000Z","updated_at":"2025-05-04T17:04:30.000Z","dependencies_parsed_at":"2025-05-04T18:28:56.981Z","dependency_job_id":null,"html_url":"https://github.com/xp-forge/neo4j","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/xp-forge/neo4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fneo4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fneo4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fneo4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fneo4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xp-forge","download_url":"https://codeload.github.com/xp-forge/neo4j/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fneo4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29977966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["neo4j","php","xp-framework"],"created_at":"2024-11-06T21:04:04.965Z","updated_at":"2026-03-01T18:02:37.543Z","avatar_url":"https://github.com/xp-forge.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Neo4J connectivity\n==================\n\n[![Build status on GitHub](https://github.com/xp-forge/neo4j/workflows/Tests/badge.svg)](https://github.com/xp-forge/neo4j/actions)\n[![XP Framework Module](https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png)](https://github.com/xp-framework/core)\n[![BSD Licence](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENCE.md)\n[![Requires PHP 7.4+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_4plus.svg)](http://php.net/)\n[![Supports PHP 8.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-8_0plus.svg)](http://php.net/)\n[![Latest Stable Version](https://poser.pugx.org/xp-forge/neo4j/version.svg)](https://packagist.org/packages/xp-forge/neo4j)\n\nThis library implements Neo4J connectivity via its REST API.\n\nExamples\n--------\nRunning a query can be done via `open()` (which yields one record at a time) or `query()` (which collects the results in an array):\n\n```php\nuse com\\neo4j\\Graph;\nuse util\\cmd\\Console;\n\n$g= new Graph('http://user:pass@neo4j-db.example.com:7474/db/data');\n$q= $g-\u003eopen('MATCH (t:Topic) RETURN t.name, t.canonical');\nforeach ($q as $record) {\n  Console::writeLine('#', $record['t.canonical'], ': ', $record['t.name']);\n}\n```\n\nTo retrieve single results (or *NULL* if nothing is found), use `fetch()`:\n\n```php\nif ($topic= $g-\u003efetch('MATCH (t:Topic{id:%s}) RETURN t', $id)) {\n  Console::writeLine('Found topic ', $topic);\n}\n```\n\nFormatting parameters uses *printf*-like format tokens. These will take care of proper escaping and type casting:\n\n```php\nuse com\\neo4j\\Graph;\nuse util\\cmd\\Console;\n\n$g= new Graph('http://user:pass@neo4j-db.example.com:7474/db/data');\n$g-\u003equery('CREATE (p:Person) SET t.name = %s, t.id = %d', $name, $id);\n```\n\nBatch statements can be executed via the `execute()` method.\n\nFormat characters\n-----------------\n\n* `%s`: Format a string\n* `%d`: Format a decimal number\n* `%f`: Format a floating point numer\n* `%b`: Format a boolean\n* `%v`: Copy value into parameter\n* `%l`: Copy label into query\n* `%c`: Copy literal into query\n* `%%`: A literal percent sign\n\nPositional parameters (starting at 1) may be used, e.g. `%2$s`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-forge%2Fneo4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxp-forge%2Fneo4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-forge%2Fneo4j/lists"}