{"id":28523335,"url":"https://github.com/webfashionist/devclassify","last_synced_at":"2025-07-06T05:32:32.668Z","repository":{"id":210937594,"uuid":"76754143","full_name":"webfashionist/DevClassify","owner":"webfashionist","description":"DevClassify analyzes the source code of several programming languages and returns the probabilities for each language with the recommended file extension.","archived":false,"fork":false,"pushed_at":"2020-04-14T00:02:19.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T10:08:37.217Z","etag":null,"topics":["analysis","classification","devclassify-analyzes","language","php","programming-language"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webfashionist.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,"governance":null}},"created_at":"2016-12-18T00:04:57.000Z","updated_at":"2020-04-14T00:02:22.000Z","dependencies_parsed_at":"2023-12-05T17:44:04.015Z","dependency_job_id":null,"html_url":"https://github.com/webfashionist/DevClassify","commit_stats":null,"previous_names":["webfashionist/devclassify"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/webfashionist/DevClassify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfashionist%2FDevClassify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfashionist%2FDevClassify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfashionist%2FDevClassify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfashionist%2FDevClassify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webfashionist","download_url":"https://codeload.github.com/webfashionist/DevClassify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfashionist%2FDevClassify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263853382,"owners_count":23520132,"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":["analysis","classification","devclassify-analyzes","language","php","programming-language"],"created_at":"2025-06-09T10:08:13.649Z","updated_at":"2025-07-06T05:32:32.662Z","avatar_url":"https://github.com/webfashionist.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DevClassify\nDevClassify analyzes the source code of several programming languages and returns the probabilities for each language with the recommended file extension.\n\n\n## Usage\nTo implement DevClassify in your project, you only need to `include` the `src/classes/ProgrammingLanguage.class.php` class and call the `check()` method. You can find an example in `tests/checkLanguage.php`.\n\n```php\n\u003c?php\ninclude \"src/classes/ProgrammingLanguage.class.php\";\n\n$ProgrammingLanguage = new ProgrammingLanguage();\n$result = $ProgrammingLanguage-\u003echeck($yourCode); // set your code as parameter of this method\n\n// probabilities:\nvar_dump($result-\u003eprobabilities);\n\necho '\u003cbr\u003e';\n// recommended file extension:\necho $result-\u003eextension;\n?\u003e\n```\n\n\n## Languages\n\n- [x] HTML\n- [X] XML (XML snippets will be identified as HTML - the `\u003c?xml \u003e` tag must be set)\n- [x] CSS\n- [X] JavaScript\n- [X] PHP\n- [X] SQL\n- [X] JSON\n- [X] Bash\n- [X] Python\n- [ ] ...\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfashionist%2Fdevclassify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebfashionist%2Fdevclassify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfashionist%2Fdevclassify/lists"}