{"id":28417463,"url":"https://github.com/ua-parser/uap-perl","last_synced_at":"2025-10-11T10:38:02.655Z","repository":{"id":23031888,"uuid":"26384641","full_name":"ua-parser/uap-perl","owner":"ua-parser","description":"Perl implementation of ua-parser","archived":false,"fork":false,"pushed_at":"2020-02-05T23:12:16.000Z","size":98,"stargazers_count":6,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-25T12:32:35.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/ua-parser.png","metadata":{"files":{"readme":"README.pod","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-09T04:08:47.000Z","updated_at":"2023-11-24T04:00:19.000Z","dependencies_parsed_at":"2022-08-21T09:40:48.596Z","dependency_job_id":null,"html_url":"https://github.com/ua-parser/uap-perl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ua-parser/uap-perl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ua-parser%2Fuap-perl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ua-parser%2Fuap-perl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ua-parser%2Fuap-perl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ua-parser%2Fuap-perl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ua-parser","download_url":"https://codeload.github.com/ua-parser/uap-perl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ua-parser%2Fuap-perl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006853,"owners_count":26084207,"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-10-11T02:00:06.511Z","response_time":55,"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":"2025-06-04T05:43:22.520Z","updated_at":"2025-10-11T10:38:02.621Z","avatar_url":"https://github.com/ua-parser.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"=head1 NAME\n\nHTTP::UA::Parser - Perl User Agent Parser\n\n=for html\n\u003ca href=\"https://travis-ci.org/ua-parser/uap-perl\"\u003e\u003cimg src=\"https://travis-ci.org/ua-parser/uap-perl.svg?branch=master\"\u003e\u003c/a\u003e\n\n=head1 DESCRIPTION\n\nPerl port of the ua-parser project - L\u003chttps://github.com/ua-parser\u003e\n\n=head1 SYNOPSIS\n\n    use HTTP::UA::Parser;\n    my $r = HTTP::UA::Parser-\u003enew();\n\n    print $r-\u003eua-\u003etoString();         # -\u003e \"Safari 5.0.1\"\n    print $r-\u003eua-\u003etoVersionString();  # -\u003e \"5.0.1\"\n    print $r-\u003eua-\u003efamily;             # -\u003e \"Safari\"\n    print $r-\u003eua-\u003emajor;              # -\u003e \"5\"\n    print $r-\u003eua-\u003eminor;              # -\u003e \"0\"\n    print $r-\u003eua-\u003epatch;              # -\u003e \"1\"\n\n    print $r-\u003eos-\u003etoString();         # -\u003e \"iOS 5.1\"\n    print $r-\u003eos-\u003etoVersionString();  # -\u003e \"5.1\"\n    print $r-\u003eos-\u003efamily;             # -\u003e \"iOS\"\n    print $r-\u003eos-\u003emajor;              # -\u003e \"5\"\n    print $r-\u003eos-\u003eminor;              # -\u003e \"1\"\n    print $r-\u003eos-\u003epatch;              # -\u003e undef\n\n    print $r-\u003edevice-\u003efamily;         # -\u003e \"iPhone\"\n    print $r-\u003edevice-\u003ebrand;          # -\u003e \"Apple\"\n    print $r-\u003edevice-\u003emodel;          # -\u003e \"iPhone\"\n\n=head1 Methods\n\n=head2 new()\n\nAccepts a user agent string to parse, leave empty to parse caller user agent.\n\n=head2 parse()\n\nAccepts a new user agent to parse\n\n=head2 ua()\n\nParses browser part of the user agent\n\n=head2 os()\n\nParsers operating system part of the user agent\n\n=head2 device()\n\nParses device part of the user agent\n\n=head1 Stringify Methods\n\nMethods to print results as strings\n\n=over 4\n\n=item toString()\n\nreturns os / ua name\n\n=item toVersionString()\n\nreturns full version number of os/browser\n\n=item family()\n\nreturns family name of os/browser/device\n\n=item major()\n\nreturns version's major part of os/browser\n\n=item minor()\n\nreturns version's minor part of os/browser\n\n=item patch()\n\nreturns versions patch part of os/browser\n\n=item patchMinor()\n\nreturns version patch minor part of os/browser\n\n=item brand()\n\nreturns brand name of device\n\n=item model()\n\nreturns model name of device\n\n=back\n\n=head1 INSTALLATION\n\nFrom CPAN shell simply type\n\n    % perl -MCPAN -e 'install HTTP::UA::Parser'\n\nOr from your local download, unpack and:\n\n    % perl Makefile.PL\n    % make \u0026\u0026 make test\n\nThen install:\n\n    % make install\n\n=head1 COMMAND LINE\n\nTo update regexes.yaml file from command line\n\n    % ua_parser -u\n\nTo parse some user agent from command line\n\n    % ua_parser -p \"some user agent\"\n\nHelp usage\n\n    % ua_parser -h\n\n=head1 AUTHOR\n\nMamod A. Mehyar, E\u003clt\u003emamod.mehyar@gmail.comE\u003cgt\u003e\n\n=head1 COPYRIGHT AND LICENSE\n\nCopyright (C) 2020 by Mamod A. Mehyar \u0026 other contributors\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself, either Perl version 5.10.1 or,\nat your option, any later version of Perl 5 you may have available.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fua-parser%2Fuap-perl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fua-parser%2Fuap-perl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fua-parser%2Fuap-perl/lists"}