PHPackages                             jumper423/shelter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. jumper423/shelter

ActiveLibrary

jumper423/shelter
=================

shelter

1.0(9y ago)123Apache License 2.0PHPPHP &gt;=7.0

Since Oct 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jumper423/shelter)[ Packagist](https://packagist.org/packages/jumper423/shelter)[ Docs](https://github.com/jumper423/shelter)[ RSS](/packages/jumper423-shelter/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Приют животных.
===============

[](#приют-животных)

[![PHP version](https://camo.githubusercontent.com/daa5552b08d09563afcb74dc8c469dcd55f90d935b10b7094ad0d039104c1961/68747470733a2f2f62616467652e667572792e696f2f70682f6a756d7065723432332532467368656c7465722e737667)](https://badge.fury.io/ph/jumper423%2Fshelter)[![Build Status](https://camo.githubusercontent.com/113c9bd19e98b220ebeaa8cee73f10cb6ac3b0dc101cbd0e356ecf3d8353c490/68747470733a2f2f7472617669732d63692e6f72672f6a756d7065723432332f7368656c7465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jumper423/shelter)

Реализовать набор классов для управления приютом для животных. Приют может содержать три типа животных – кошки, собаки, черепахи. Для каждого животного при попадании в приют указывается кличка и определяется возраст, в дальнейшем эти данные не меняются, человек, забирающий животное не может все это изменить.

Доступны следующие операции:

- Поместить в приют.
- Посмотреть всех животных определенного типа, сортированных по кличке в алфавитном порядке.
- Передать человеку животное (определенного типа), находящееся в приюте наибольшее время.
- Передать человеку животное (без указания типа), находящееся приюте наибольшее время.

задание расчитано для голого php 5.6 или выше То есть если хочется в задании использовать что-то из php7 - то можно

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist jumper423/shelter

```

or add

```
"jumper423/shelter": "*"
```

to the `require` section of your composer.json.

Usage &amp; Documentation
-------------------------

[](#usage--documentation)

```
$shelter = \jumper423\Shelter::getInstance();

$cat1 = new \jumper423\Cat();
$shelter->newAnimal($cat1);
$dog1 = new \jumper423\Dog();
$shelter->newAnimal($dog1);
$dog2 = new \jumper423\Dog();;
$shelter->newAnimal($dog2);

$animalsCats = $shelter->viewAnimal(\jumper423\Cat::class);
$animalsDogs = $shelter->viewAnimal(\jumper423\Dog::class);

$people = new \jumper423\People();
$animal1= $shelter->transferAnimal(\jumper423\Cat::class);
$people->newAnimal($animal1);

$animal2 = $shelter->transferAnimal();
$people->newAnimal($animal2);
```

Tests
-----

[](#tests)

```
vendor/bin/phpunit

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3490d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/439d5d301333a1fa93f698c0ff8b03b2634db04507148d5d9a692fa1e7605722?d=identicon)[jumper423](/maintainers/jumper423)

---

Top Contributors

[![jumper423](https://avatars.githubusercontent.com/u/12099016?v=4)](https://github.com/jumper423 "jumper423 (9 commits)")

---

Tags

catdogshelter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jumper423-shelter/health.svg)

```
[![Health](https://phpackages.com/badges/jumper423-shelter/health.svg)](https://phpackages.com/packages/jumper423-shelter)
```

###  Alternatives

[whatthejeff/nyancat-phpunit-resultprinter

Nyan Cat result printer for PHPUnit

283689.8k24](/packages/whatthejeff-nyancat-phpunit-resultprinter)[whatthejeff/nyancat-scoreboard

Nyan Cat Scoreboard

19985.0k4](/packages/whatthejeff-nyancat-scoreboard)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
