{"id":43308404,"url":"https://github.com/php-ai/php-ml-examples","last_synced_at":"2026-02-12T21:00:34.221Z","repository":{"id":40499861,"uuid":"268630824","full_name":"php-ai/php-ml-examples","owner":"php-ai","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-01T20:58:29.000Z","size":313,"stargazers_count":158,"open_issues_count":6,"forks_count":47,"subscribers_count":13,"default_branch":"master","last_synced_at":"2023-11-07T17:30:03.935Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-ai.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-06-01T20:58:08.000Z","updated_at":"2023-11-07T04:35:40.000Z","dependencies_parsed_at":"2022-07-12T19:40:41.520Z","dependency_job_id":null,"html_url":"https://github.com/php-ai/php-ml-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/php-ai/php-ml-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ai%2Fphp-ml-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ai%2Fphp-ml-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ai%2Fphp-ml-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ai%2Fphp-ml-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-ai","download_url":"https://codeload.github.com/php-ai/php-ml-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ai%2Fphp-ml-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29381022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-02-01T21:00:22.048Z","updated_at":"2026-02-12T21:00:34.215Z","avatar_url":"https://github.com/php-ai.png","language":"PHP","funding_links":[],"categories":["Machine Learning"],"sub_categories":["Recommended core stack"],"readme":"# PHP-ML - Machine Learning library for PHP - Examples\n\nExamples of the use of PHP-ML library\n\n## Projects\n\nInteresting demo/examples projects using `php-ml`:\n\n* [Code Review Estimator](https://github.com/akondas/code-review-estimator) - Simple showcase of machine learning for code review cost estimation.\n\n## Articles\n\nMany of samples from this repository was used in my articles\n\n * [Text data classification with BBC news article dataset](https://arkadiuszkondas.com/text-data-classification-with-bbc-news-article-dataset/)\n * [Clustering Chicago robberies locations with k-means algorithm](https://arkadiuszkondas.com/clustering-chicago-robberies-locations-with-k-means-algorithm/)\n * [Predict air pollution with k-Nearest Neighbors and PHP](https://arkadiuszkondas.com/predict-air-pollution-with-k-nearest-neighbors-and-php/)\n\n## Examples\n\nTo test example, select one of the following and run it from main folder (each category has its own folder).\n\n```\nphp classification/languageDetection.php\n```\n\nClassification:\n\n* `languageDetection.php` - classifier build for language detection\n* `minst.php` - recognize handwritten digits from MNIST dataset (to download dataset use `bin/download-mnist.sh`)\n* `spamFilter.php` - simple spam filter with example dataset\n* `bbc.php` - example of text classification\n\nRegression:\n\n* `wineQuality.php` - regression model to assess the quality of the wine \n\n## License\n\nPHP-ML is released under the MIT Licence. See the bundled LICENSE file for details.\n\n## Author\n\nArkadiusz Kondas (@ArkadiuszKondas)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-ai%2Fphp-ml-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-ai%2Fphp-ml-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-ai%2Fphp-ml-examples/lists"}