File manager - Edit - /home/autoph/public_html/projects/Rating-AutoHub/public/css/nette.zip
Back
PK &�Z��R�) ) utils/readme.mdnu �[��� Nette Utility Classes ===================== [](https://packagist.org/packages/nette/utils) [](https://github.com/nette/utils/actions) [](https://coveralls.io/github/nette/utils?branch=master) [](https://github.com/nette/utils/releases) [](https://github.com/nette/utils/blob/master/license.md) Introduction ------------ In package nette/utils you will find a set of [useful classes](https://doc.nette.org/utils) for everyday use: - [Arrays](https://doc.nette.org/utils/arrays) - manipulate arrays - [Callback](https://doc.nette.org/utils/callback) - PHP callbacks - [Date and Time](https://doc.nette.org/utils/datetime) - modify times and dates - [Filesystem](https://doc.nette.org/utils/filesystem) - copying, renaming, … - [Finder](https://doc.nette.org/utils/finder) - finds files and directories - [Helper Functions](https://doc.nette.org/utils/helpers) - [HTML elements](https://doc.nette.org/utils/html-elements) - generate HTML - [Images](https://doc.nette.org/utils/images) - crop, resize, rotate images - [JSON](https://doc.nette.org/utils/json) - encoding and decoding - [Generating Random Strings](https://doc.nette.org/utils/random) - [Paginator](https://doc.nette.org/utils/paginator) - pagination math - [PHP Reflection](https://doc.nette.org/utils/reflection) - [Strings](https://doc.nette.org/utils/strings) - useful text functions - [SmartObject](https://doc.nette.org/utils/smartobject) - PHP object enhancements - [Validation](https://doc.nette.org/utils/validators) - validate inputs - [Type](https://doc.nette.org/utils/type) - PHP data type Installation ------------ The recommended way to install is via Composer: ``` composer require nette/utils ``` - Nette Utils 4.0 is compatible with PHP 8.0 to 8.2 - Nette Utils 3.2 is compatible with PHP 7.2 to 8.2 - Nette Utils 3.1 is compatible with PHP 7.1 to 8.0 - Nette Utils 3.0 is compatible with PHP 7.1 to 8.0 - Nette Utils 2.5 is compatible with PHP 5.6 to 8.0 [Support Me](https://github.com/sponsors/dg) -------------------------------------------- Do you like Nette Utils? Are you looking forward to the new features? [](https://github.com/sponsors/dg) Thank you! PK &�Z��G�. . utils/composer.jsonnu �[��� { "name": "nette/utils", "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", "keywords": ["nette", "images", "json", "password", "validation", "utility", "string", "array", "core", "slugify", "utf-8", "unicode", "paginator", "datetime"], "homepage": "https://nette.org", "license": ["BSD-3-Clause", "GPL-2.0-only", "GPL-3.0-only"], "authors": [ { "name": "David Grudl", "homepage": "https://davidgrudl.com" }, { "name": "Nette Community", "homepage": "https://nette.org/contributors" } ], "require": { "php": ">=8.0 <8.3" }, "require-dev": { "nette/tester": "^2.4", "tracy/tracy": "^2.9", "phpstan/phpstan": "^1.0", "jetbrains/phpstorm-attributes": "dev-master" }, "conflict": { "nette/finder": "<3", "nette/schema": "<1.2.2" }, "suggest": { "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", "ext-json": "to use Nette\\Utils\\Json", "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", "ext-mbstring": "to use Strings::lower() etc...", "ext-xml": "to use Strings::length() etc. when mbstring is not available", "ext-gd": "to use Image", "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()" }, "autoload": { "classmap": ["src/"] }, "minimum-stability": "dev", "scripts": { "phpstan": "phpstan analyse", "tester": "tester tests -s" }, "extra": { "branch-alias": { "dev-master": "4.0-dev" } } } PK &�Z,��Y Y utils/src/Iterators/Mapper.phpnu �[��� <?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ declare(strict_types=1); namespace Nette\Iterators; /** * Applies the callback to the elements of the inner iterator. */ class Mapper extends \IteratorIterator { /** @var callable */ private $callback; public function __construct(\Traversable $iterator, callable $callback) { parent::__construct($iterator); $this->callback = $callback; } public function current(): mixed { return ($this->callback)(parent::current(), parent::key()); } } PK &�Z��2�� � '