{"id":20528243,"url":"https://github.com/manticoresoftware/php-ext-model","last_synced_at":"2026-03-11T18:33:36.004Z","repository":{"id":229578854,"uuid":"776414810","full_name":"manticoresoftware/php-ext-model","owner":"manticoresoftware","description":"Sentence Transformer model inference with PHP and HuggingFace candle ML framework wrapper","archived":false,"fork":false,"pushed_at":"2024-04-06T10:02:30.000Z","size":30,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T20:47:57.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/manticoresoftware.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-23T12:51:13.000Z","updated_at":"2025-03-31T08:02:36.000Z","dependencies_parsed_at":"2024-11-15T23:24:19.462Z","dependency_job_id":"b953816b-0514-4f02-a11d-192bd7f44720","html_url":"https://github.com/manticoresoftware/php-ext-model","commit_stats":null,"previous_names":["manticoresoftware/php-ext-model"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/manticoresoftware/php-ext-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manticoresoftware%2Fphp-ext-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manticoresoftware%2Fphp-ext-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manticoresoftware%2Fphp-ext-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manticoresoftware%2Fphp-ext-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manticoresoftware","download_url":"https://codeload.github.com/manticoresoftware/php-ext-model/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manticoresoftware%2Fphp-ext-model/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267858704,"owners_count":24155941,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-15T23:24:09.895Z","updated_at":"2026-03-11T18:33:30.972Z","avatar_url":"https://github.com/manticoresoftware.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-ext-model\n\nThis extension enable you the power of rust and HuggingFace candle framework to run any setence-transformers model form the PHP with lighting speed.\n\n## How to Use\n\nHere's an example of how to use it:\n\n```php\n\u003c?php\nuse Manticore\\Ext\\Model;\n// One from https://huggingface.co/sentence-transformers\n$model = Model::create(\"sentence-transformers/all-MiniLM-L12-v2\");\nvar_dump($model-\u003epredict(\"Hello world\"));\n```\n\nThis will display the flatten tensor as list of floats\n\n## How to Build\n\nYou need to have `cargo` installed to build.\n\n```bash\ncargo build --release\n```\n\nAfter the build is complete, you can use the extension with PHP as usual.\n\n```bash\n$ php -d extension=target/release/libphp_ext_model.so -r 'var_dump(class_exists(\"Manticore\\Ext\\Model\"));'\nbool(true)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanticoresoftware%2Fphp-ext-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanticoresoftware%2Fphp-ext-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanticoresoftware%2Fphp-ext-model/lists"}