{"id":21171582,"url":"https://github.com/0k/php-oe-json","last_synced_at":"2025-07-09T19:33:03.275Z","repository":{"id":4244538,"uuid":"5369503","full_name":"0k/php-oe-json","owner":"0k","description":"OpenERP JSON-RPC lib for PHP","archived":false,"fork":false,"pushed_at":"2015-10-15T07:53:23.000Z","size":259,"stargazers_count":12,"open_issues_count":3,"forks_count":24,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-06-18T21:51:00.406Z","etag":null,"topics":[],"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/0k.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-10T13:22:56.000Z","updated_at":"2021-11-04T07:23:37.000Z","dependencies_parsed_at":"2022-08-20T16:00:06.421Z","dependency_job_id":null,"html_url":"https://github.com/0k/php-oe-json","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/0k%2Fphp-oe-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fphp-oe-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fphp-oe-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fphp-oe-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0k","download_url":"https://codeload.github.com/0k/php-oe-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225587760,"owners_count":17492633,"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":[],"created_at":"2024-11-20T16:08:00.626Z","updated_at":"2024-11-20T16:08:01.345Z","avatar_url":"https://github.com/0k.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"===========\nphp-oe-json\n===========\n\n.. image:: https://poser.pugx.org/0k/php-oe-json/v/stable.png\n    :target: https://packagist.org/packages/0k/php-oe-json\n    :alt: Latest Stable Version\n\n.. image:: https://poser.pugx.org/0k/php-oe-json/downloads.png\n    :target: https://packagist.org/packages/0k/php-oe-json\n    :alt: Total Downloads\n\n.. image:: https://poser.pugx.org/0k/php-oe-json/v/unstable.png\n    :target: https://packagist.org/packages/0k/php-oe-json\n    :alt: Latest Unstable Version\n\n.. image:: https://poser.pugx.org/0k/php-oe-json/license.png\n    :target: https://packagist.org/packages/0k/php-oe-json\n    :alt: License\n\nModest PHP class to manage OpenERP Json query.\n\n\nCode maturity\n-------------\n\nEarly working alpha. Comments welcome. Although it was tested against OpenERP version 6.1 and 7.0.\n\n\nFeatures\n--------\n\n- Simple way to add new json-rpc entry points\n- Quite easy to get started (see Usage section)\n- Ability to resume an open session (and thus login in openerp) with a\n  saved ``session_id`` and HTTP ``cookie_id`` (without ``$login`` and\n  ``$password``)\n\n\nUsage\n-----\n\nsample PHP code::\n\n  \u003c?php\n\n  require_once 'openerp.php';\n\n  $oe = new PhpOeJson\\OpenERP(\"http://localhost:8069\", \"test_json\");\n  $oe-\u003elogin(\"admin\", \"xxxxxx\");\n\n  echo \"Logged in (session id: \" . $oe-\u003esession_id . \")\";\n\n  $partners = $oe-\u003eread(array(\n    'model' =\u003e 'res.partner',\n    'fields' =\u003e array('name', 'city'),\n  ));\n\n  echo \"\u003cul\u003e\";\n  foreach($partners['records'] as $partner) {\n     echo \"    \u003cli\u003e\" . $partner[\"name\"] . \" - \" . $partner[\"city\"] . \"\u003c/li\u003e\\n\";\n  }\n  echo \"\u003c/ul\u003e\";\n\n  ?\u003e\n\nThis actual code (with small modifications) is provided in the ``example-project``\ndirectory which is a ``composer``-ready package (more about composer_, how to `get\ncomposer command`_). This means you can run ``composer install`` on the root of the \n``example-project`` directory to install dependencies, and you'll only have to edit\n``settings.php`` and set ``$url``, ``$db`` and the ``$login``, ``$password`` to test\nit with your installation.\n\n.. _composer: https://getcomposer.org/\n.. _get composer command: https://getcomposer.org/doc/00-intro.md#downloading-the-composer-executable\n\n\nPlease note that this is a very thin layer above Tivoka_ which is a JSON-RPC PHP lib.\n\n.. _Tivoka: https://github.com/marcelklehr/tivoka\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0k%2Fphp-oe-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0k%2Fphp-oe-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0k%2Fphp-oe-json/lists"}