Alto Language provides structured metadata for 62 programming and document languages: extensions, aliases, exact filenames, relationships, and syntax markers.
<?php
use Alto\Language\Languages;
$language = Languages::fromFilename('src/Example.php');
echo $language?->name; // PHPIntroduction
- Installation: install the dependency-free package.
- Getting started: resolve a file and inspect its language.
Languages
- Lookup: resolve slugs, aliases, extensions, and filenames.
- Catalog: browse and filter the bundled definitions.
- Definitions: inspect metadata and register application languages.
The package returns metadata. It does not inspect file contents or calculate a confidence score.