PHP Classes

PHP Animal: Provides information about different pet animals

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-03-09 (6 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 40 All time: 10,888 This week: 104Up
Version License PHP version Categories
phpanimals 1.0.0Custom (specified...5Algorithms, PHP 5, Biology
Collaborate with this project 

Author

phpAnimals - github.com

Description

This package provides information about different pet animals.

It provides a base class that can return different information about a type of animal, like, for instance, the equivalent number of years of an animal compared to a human's age.

The package also provides specific sub-classes for different types of animals.

Currently, it provides sub-classes for cats and dogs.

Innovation Award
PHP Programming Innovation award nominee
February 2024
Number 7
Different types of animals have different average lifetime duration.

If you want to evaluate the equivalent age of a pet animal when compared to a human, you need to calculate the proportional age of the pet animal, considering the average lifetime of an animal compared to a human average lifetime duration.

This package provides classes that can return details for different types of animals, like the current age of a pet animal as if it were a human, so you can have an idea of how old an animal is.

Manuel Lemos
Picture of ASCOOS CMS
  Performance   Level  
Name: ASCOOS CMS <contact>
Classes: 12 packages by
Country: Greece Greece
Innovation award
Innovation award
Nominee: 8x

Instructions

We suggest you include simplified instructions on using your package to increase the number of interested users.

To do that, please click the Edit button on your package page and enter the instructions text in the Instructions field.

You can use the Markdown format to enter your instructions.

Then click on the Update the class button to save the instructions. You can see the instructions on your package page.

Example

<?php
/**
 * __ _ ___ ___ ___ ___ ___ ____ _ __ ___ ___
 * / _` |/ / / __/ _ \ / _ \ / / / __/| '_ ` _ \ / /
 * | (_| |\ \| (_| (_) | (_) |\ \ | (__ | | | | | |\ \
 * \__,_|/__/ \___\___/ \___/ /__/ \___\|_| |_| |_|/__/
 *
 *
 ***********************************************************************************
 * @ASCOOS-NAME : ASCOOS CMS 24' *
 * @ASCOOS-VERSION : 24.0.0 *
 * @ASCOOS-CATEGORY : Kernel (Frontend and Administration Side) *
 * @ASCOOS-CREATOR : Drogidis Christos *
 * @ASCOOS-SITE : www.ascoos.com *
 * @ASCOOS-LICENSE : [Commercial] http://docs.ascoos.com/lics/ascoos/AGL.html *
 * @ASCOOS-COPYRIGHT : Copyright (c) 2007 - 2024, AlexSoft Software. *
 ***********************************************************************************
 *
 * @package : ASCOOS CMS - Animals Human Age
 * @subpackage : Subpackage Description
 * @source : phpAnimals/test/example.php
 * @version : NNNNNNNN - $release: 1.0 - $revision: 1 - $build 10
 * @created : 2024-02-17 01:08:00 UTC+3
 * @updated :
 * @author : Drogidis Christos
 * @authorSite : www.alexsoft.gr
 */

 
define('ALEXSOFT_RUN_CMS', true);

$cms_path = str_replace('/phpAnimals/test', '',str_replace('\\', '/', __DIR__));
 
require_once(
$cms_path."/phpAnimals/src/phpAnimals.php");


$age = 9;
$dog = new TDog($age);
$cat = new TCat($age);

echo
"1) The Dog ".$age." years old in human age is : ".$dog->getHumanYears()."</br><hr></br>";
echo
"2) The Cat ".$age." years old in human age is : ".$cat->getHumanYears();
?>


Details

PHP Animals

Dog and Cat ages in Human age.....

*

2019 Epigenetic Clock Study

A 2019 study by researchers at the University of California San Diego put forth a new method for calculating dog age, based on changes made to human and dog DNA over time.

In both species, methyl groups are added to DNA molecules throughout aging, altering DNA activity without altering the DNA itself. As a result, DNA methylation has been used by scientists to study aging in humans through an «epigenetic clock».

The research team performed targeted DNA sequencing in 104 Labrador Retrievers spanning a 16 year age range, in an attempt to compare with the dogs epigenetic clocks to those of humans.

The results allowed them to derive a formula for adjusting dogs ages to "human years", by multiplying the natural logarithm of the dog's age by 16 and adding 31.


  Files folder image Files (7)  
File Role Description
Files folder imagesrc (1 file)
Files folder imagetest (1 file)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file LICENSE_AGL-F.md Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (7)  /  src  
File Role Description
  Plain text file phpAnimals.php Class Class source

  Files folder image Files (7)  /  test  
File Role Description
  Accessible without login Plain text file example.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:40
This week:0
All time:10,888
This week:104Up