PHPackages                             vzgcoders/totk-recipe-calculator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vzgcoders/totk-recipe-calculator

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

vzgcoders/totk-recipe-calculator
================================

A cooking calculator for Tears of the Kingdom.

v1.3(2y ago)9341[4 issues](https://github.com/Valgorithms/TOTK-Recipe-Calculator/issues)MITPHPPHP ^8.0

Since Jun 4Pushed 2y ago4 watchersCompare

[ Source](https://github.com/Valgorithms/TOTK-Recipe-Calculator)[ Packagist](https://packagist.org/packages/vzgcoders/totk-recipe-calculator)[ GitHub Sponsors](https://github.com/[user1)[ GitHub Sponsors](https://github.com/user2)[ RSS](/packages/vzgcoders-totk-recipe-calculator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

TOTK-Recipe-Calculator
======================

[](#totk-recipe-calculator)

[![VZGCoders Discord](https://camo.githubusercontent.com/2335d162240bc900b058a2c985f0b03d4be50b85631d1622f44e0dbbc3f397f4/68747470733a2f2f646973636f72642e636f6d2f6170692f6775696c64732f3932333936393039383138353036383539342f7769646765742e706e673f7374796c653d62616e6e657231)](http://valzargaming.com/discord)

Before you start
----------------

[](#before-you-start)

Before you start using this Library, you **need** to know how PHP works. This is a fundamental requirement before you start. Without this knowledge, you will only suffer.

FAQ
---

[](#faq)

1. Can I run TOTK-Recipe-Calculator on a webserver (e.g. Apache, nginx)?
    - Yes! I'm also working on a version that is compatible with the DiscordPHP Library that will only run in CLI. If that's what you're looking for, you can find it [here](https://github.com/VZGCoders/TOTK-Recipe-Calculator-Bot) (unless it's still in development, in which case the repository is still set to private).

Getting Started
---------------

[](#getting-started)

### Requirements

[](#requirements)

- PHP 8.0
- Composer

#### Recommended Extensions

[](#recommended-extensions)

- The latest PHP version.

### Basic Configuration-

[](#basic-configuration-)

```
use \TOTK\Crafter;
use \TOTK\Helpers\Collection;
use \TOTK\Parts\Ingredient;

ini_set('display_errors', 1);
error_reporting(E_ALL);
set_time_limit(0);
ignore_user_abort(1);
ini_set('max_execution_time', 0);
ini_set('memory_limit', '-1'); //Unlimited memory usage
if (! @include getcwd() . '/vendor/autoload.php') { //If you clone the GitHub project instead of using Composer we will need to load these classes manually
    include __DIR__ . '/src/TOTK/crafter.php';
    include __DIR__ . '/src/TOTK/Helpers/collection.php';
    include __DIR__ . '/src/TOTK/Parts/ingredient.php';
}

//This is what will be used to calculate meals from a list of ingredients
$crafter = new Crafter();

//For ease of use, create a Collection to retrieve a list of ingredients
if (! $materials_file = @file(__DIR__ . '\vendor\vzgcoders\totk-recipe-calculator\src\TOTK\CSVs\materials.csv')) $materials_file = file(__DIR__ . '\src\TOTK\CSVs\materials.csv');
$csv = array_map('str_getcsv', $materials_file);
$keys = array_shift($csv);
$materials = array();
foreach ($csv as $row) $materials[] = array_combine($keys, $row);
$materials_collection = new Collection([], $keys[2]);
foreach ($materials as $array) $materials_collection->pushItem($array);

// Pick out some ingredients for your recipe. This is an example for Fruitcake.
$ingredient1 = new Ingredient($materials_collection->get('Euen name', 'Apple'));
$ingredient2 = new Ingredient($materials_collection->get('Euen name', 'Wildberry'));
$ingredient3 = new Ingredient($materials_collection->get('Euen name', 'Cane Sugar'));
$ingredient4 = new Ingredient($materials_collection->get('Euen name', 'Tabantha Wheat'));
$ingredient5 = null;

//Throw the array into the crafter and display the results
$ingredients = [$ingredient1 ?? NULL, $ingredient2 ?? NULL, $ingredient3 ?? NULL, $ingredient4 ?? NULL, $ingredient5 ?? NULL];
var_dump('[MEAL]', $meal = $crafter->process($ingredients));
```

See [main.php](main.php) for function examples.

Contributing
------------

[](#contributing)

We are open to contributions, just open a pull request and we will review it.

License
-------

[](#license)

MIT License, © Valithor Obsidion and other contributers 2023-present.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

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

Every ~0 days

Total

3

Last Release

1073d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f85d19ae7440b91717206e5e67342bae2dcc1c8de0a6f4333bbb75b18212d0f?d=identicon)[valzargaming](/maintainers/valzargaming)

---

Top Contributors

[![valzargaming](https://avatars.githubusercontent.com/u/7202504?v=4)](https://github.com/valzargaming "valzargaming (109 commits)")

### Embed Badge

![Health badge](/badges/vzgcoders-totk-recipe-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/vzgcoders-totk-recipe-calculator/health.svg)](https://phpackages.com/packages/vzgcoders-totk-recipe-calculator)
```

###  Alternatives

[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[uspdev/replicado

Classes PHP que consome dados do Replicado USP

136.2k7](/packages/uspdev-replicado)

PHPackages © 2026

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