Download the PHP package odango/atama without Composer

On this page you can find all versions of the php package odango/atama. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package atama

頭 (Atama)

Build Status Coverage Status

Anime torrent title parsing and archiving

This package's only use is to parse anime torrent titles and archive them into TorrentSets

Install

Metadata

The actual parsing of titles done with black magic, battle tested on the whole nyaa site. of course there may be some cases where it fails to parse correctly, please create an issue for those.

See metadate-title.json for more info.

EP's are represented by an array with floats and/or letters (thank Re:Zero for that):

The Metadata object is an ArrayObject and doesn't define any functions except it's constructors

Metadata::createFromTitle($title): Metadata

Create an Metadata object from a title by parsing all the info from the title

Metadata::createFromArray($array): Metadata

Create an Metadata object with the given array as properties

Archiver

Archives the torrents into the correct TorrentSet's can be done stateless (by using Archiver::archive) or with state, by creating the Archiver object

Archiver::archive(Torrent[] $torrents): TorrentSet[]

This function will archive given torrents in separate TorrentSet's and return those, as you would expect it.

All HorribleSubs, Show By Rock!! S2, 720p will be in it's own set, while the 1080p torrents of those will be in a different set.

Archiver->addTorrent(Torrent $torrent): bool

This will archive this torrent in the TorrentSet's currently in the archive.

This will return true if it's added to a TorrentSet, false if a newer version or the same version already exists

Archiver->getSets(): TorrentSet[]

Get the TorrentSet's currently in the archive

TorrentSet

TorrentSet->addTorrent(Torrent $torrent): bool

This will try to add this torrent to this TorrentSet

This will return true if it's added to this TorrentSet, false if a newer version or the same version already exists

TorrentSet->getTorrents(): Torrent[]

Returns all the torrents in the TorrentSet

TorrentSet->getMetadata(): Metadata

Gets a Metadata object with the Metadata all torrents in the set have in common

Torrent

The Torrent object is pretty much made only to be extended and add more info about it, the current implementation just provides enough information to be used

Torrent->setTitle(string $title): void

Set the title of this torrent and update metadata accordingly

Torrent->getTitle(): string

Gets the title of this torrent

Torrent->getId(): string|int

Gets the id of this torrent, used as unique identifier in the hash for series

Torrent->getMetadata(): Metadata

Gets the metadata of this torrent parsed from the title

Torrent->getSeriesIdentifier(): string

Gets a unique string for in this series, e.g. for an series of EP's this would be the ep number. The id or a random number is used for specials

Torrent->getHash(): string

Gets a unique string for this torrent e.g. [HorribleSubs] Show By Rock!! S2 - 07 [720p].mkv would produce the hash Show By Rock!! S2/HorribleSubs/720p#7 be aware that different versions of torrents still produce the same hash e.g. [HorribleSubs] Show By Rock!! S2 - 07v2 [720p].mkv will also produce the hash Show By Rock!! S2/HorribleSubs/720p#7

Torrent->getSeriesHash(): string

Gets a unique string this torrent series e.g. [HorribleSubs] Show By Rock!! S2 - 07 [720p].mkv would produce the hash Show By Rock!! S2/HorribleSubs/720p


All versions of atama with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package odango/atama contains the following files

Loading the files please wait ....