{"id":15660334,"url":"https://github.com/stefanak-michal/memgraph-bolt-wrapper","last_synced_at":"2025-05-05T20:52:42.049Z","repository":{"id":53818242,"uuid":"521619233","full_name":"stefanak-michal/memgraph-bolt-wrapper","owner":"stefanak-michal","description":"Wrapper for Memgraph over PHP Bolt library to simplify usage.","archived":false,"fork":false,"pushed_at":"2023-12-19T17:07:30.000Z","size":25,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-30T02:42:59.505Z","etag":null,"topics":["bolt","driver","graph-database","memgraph","php"],"latest_commit_sha":null,"homepage":"","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/stefanak-michal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"stefanak-michal","ko_fi":"michalstefanak"}},"created_at":"2022-08-05T11:52:26.000Z","updated_at":"2024-09-03T12:02:33.000Z","dependencies_parsed_at":"2024-10-03T13:21:11.186Z","dependency_job_id":null,"html_url":"https://github.com/stefanak-michal/memgraph-bolt-wrapper","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"54c3e5fefd2f1ec86dcd24627768e0df6b011526"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanak-michal%2Fmemgraph-bolt-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanak-michal%2Fmemgraph-bolt-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanak-michal%2Fmemgraph-bolt-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanak-michal%2Fmemgraph-bolt-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanak-michal","download_url":"https://codeload.github.com/stefanak-michal/memgraph-bolt-wrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252576532,"owners_count":21770715,"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":["bolt","driver","graph-database","memgraph","php"],"created_at":"2024-10-03T13:21:08.899Z","updated_at":"2025-05-05T20:52:42.031Z","avatar_url":"https://github.com/stefanak-michal.png","language":"PHP","funding_links":["https://github.com/sponsors/stefanak-michal","https://ko-fi.com/michalstefanak","https://ko-fi.com/Z8Z5ABMLW'"],"categories":[],"sub_categories":[],"readme":"# Memgraph Bolt wrapper\n\nThis library contains wrapper class to cover basic functionality with [Bolt library](https://github.com/neo4j-php/Bolt).\n\n![DB Tests PHP8](https://github.com/stefanak-michal/memgraph-bolt-wrapper/actions/workflows/tests.2204.yml/badge.svg?branch=main)\n\n\u003ca href='https://ko-fi.com/Z8Z5ABMLW' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi1.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n## Usage\n\n```php\nMemgraph::$auth = ['scheme' =\u003e 'none'];\n$rows = Memgraph::query('RETURN $n as num', ['n' =\u003e 123]);\n```\n\nYou can also use methods like `queryFirstField` and `queryFirstColumn`.\n\n_If you want to learn more about available query parameters check tests._\n\n### Database server\n\nDefault connection is executed on 127.0.0.1:7687. You can change target server with static properties:\n\n```php\nMemgraph::$host = '127.0.0.1';\nMemgraph::$port = 7687;\n```\n\n### Transactions\n\nTransaction methods are:\n\n```php\nMemgraph::begin();\nMemgraph::commit();\nMemgraph::rollback();\n```\n\n### Log handler\n\nYou can set callable function into `Memgraph::$logHandler` which is called everytime query is executed. Method will receive executed query with additional statistics.\n\n_Check class property annotation for more information._\n\n### Error handler\n\nStandard behaviour on error is trigger_error with E_USER_ERROR. If you want to handle Exception by yourself you can set callable function into `Memgraph::$errorHandler`.\n\n### Statistics\n\nWrapper offers special method `Memgraph::statistic()`. This method returns specific information from last executed query.\n\n_Check method annotation for more information._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanak-michal%2Fmemgraph-bolt-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanak-michal%2Fmemgraph-bolt-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanak-michal%2Fmemgraph-bolt-wrapper/lists"}