{"id":15026325,"url":"https://github.com/mbrioski/aiml","last_synced_at":"2025-12-24T19:09:12.285Z","repository":{"id":62535835,"uuid":"239351395","full_name":"mbrioski/AIML","owner":"mbrioski","description":"PHP \u003e=7.3 library for AIML files","archived":false,"fork":false,"pushed_at":"2020-02-18T09:10:29.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T03:14:39.350Z","etag":null,"topics":["aiml","aiml-interpreter","php","php73"],"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/mbrioski.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":"2020-02-09T18:17:18.000Z","updated_at":"2025-01-28T01:02:26.000Z","dependencies_parsed_at":"2022-11-02T16:01:13.477Z","dependency_job_id":null,"html_url":"https://github.com/mbrioski/AIML","commit_stats":null,"previous_names":["ridesoft/aiml"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrioski%2FAIML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrioski%2FAIML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrioski%2FAIML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrioski%2FAIML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbrioski","download_url":"https://codeload.github.com/mbrioski/AIML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243330323,"owners_count":20274039,"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":["aiml","aiml-interpreter","php","php73"],"created_at":"2024-09-24T20:04:16.854Z","updated_at":"2025-12-24T19:09:12.257Z","avatar_url":"https://github.com/mbrioski.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"AIML library for php\n---\n[![Build Status](https://travis-ci.org/ridesoft/AIML.svg?branch=master)](https://travis-ci.org/ridesoft/Aiml-parser)\n\nAiml Php library for php, compatible with Php 7.3\u003e=.\n\nAIML stands for Artificial Intelligence Modelling Language. AIML is an XML based markup language meant to create \nartificial intelligent applications.\n\n[AIML Reference](https://www.pandorabots.com/docs/aiml-reference/)\n\n## Supported language tags\n* `\u003cpattern\u003e`\n* `\u003ctemplate\u003e`\n* `\u003cstar\u003e`\n* `\u003csrai\u003e`\n\n## How install it\n\n`composer require ridesoft/aiml:~0.1.0`\n\n## Base usage example\n\nYou can find this example in the [robot.php](tests/robot.php) file.\nRun it with `docker run -v ${PWD}:/var/www/html --rm -it php:7.4-fpm-alpine sh -c \"php tests/robot.php\"`\n\n```\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\n$file = new \\Ridesoft\\AIML\\File();\n\necho \"Hello Aiml\\n\";\necho $file-\u003esetAimlFile(__DIR__ . '/files/simple.aiml')\n        -\u003egetCategory('Hello Aiml')\n        -\u003egetTemplate() . \"\\n\";\n\n$file2 = new \\Ridesoft\\AIML\\File();\n$category = $file2-\u003esetAimlFile(__DIR__ . '/files/srai.aiml')\n    -\u003egetCategory('Who Mauri is?');\n\necho \"Who Mauri is? \\n\";\nif ($category-\u003eisTemplateSrai()) {\n    echo $file2-\u003egetCategory($category-\u003egetTemplate($category-\u003egetStars()))\n        -\u003egetTemplate(). \"\\n\";\n}\n```\n\n## Contributing\nI develop this library in my free time: any help is really welcome: i would like in any case to follow the best practise\nusing a TDD approach or at least write unit tests for the code.\n\nThe code follow PSR2 standards.\n\n### Check coding standards\n\n```\ndocker run -v ${PWD}:/var/www/html --rm -it php:7.4-fpm-alpine vendor/bin/phpcs --standard=PSR2 /var/www/html/src\n```\n\n### Run unit test (using docker)\n\nSpin up php7.4 container with:\n```\ndocker run -v ${PWD}:/var/www/html --rm -it php:7.4-fpm-alpine vendor/bin/phpunit\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbrioski%2Faiml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbrioski%2Faiml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbrioski%2Faiml/lists"}