{"id":15282157,"url":"https://github.com/inteve/utils","last_synced_at":"2026-04-09T01:32:24.045Z","repository":{"id":56992756,"uuid":"250462935","full_name":"inteve/utils","owner":"inteve","description":"Utility classes for web development","archived":false,"fork":false,"pushed_at":"2025-07-04T10:36:19.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-23T18:55:52.901Z","etag":null,"topics":["nette","php","utilities","web-development"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inteve.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://www.janpecha.cz/donate/"}},"created_at":"2020-03-27T06:57:51.000Z","updated_at":"2025-07-04T10:36:22.000Z","dependencies_parsed_at":"2025-11-19T17:03:12.136Z","dependency_job_id":null,"html_url":"https://github.com/inteve/utils","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"a121b7022090d954dbcf4e13919947f56853edd0"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/inteve/utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inteve%2Futils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inteve%2Futils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inteve%2Futils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inteve%2Futils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inteve","download_url":"https://codeload.github.com/inteve/utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inteve%2Futils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nette","php","utilities","web-development"],"created_at":"2024-09-30T14:19:09.611Z","updated_at":"2026-04-09T01:32:24.021Z","avatar_url":"https://github.com/inteve.png","language":"PHP","funding_links":["https://www.janpecha.cz/donate/"],"categories":[],"sub_categories":[],"readme":"# Inteve\\Utils\n\n[![Build Status](https://github.com/inteve/utils/workflows/Build/badge.svg)](https://github.com/inteve/utils/actions)\n[![Downloads this Month](https://img.shields.io/packagist/dm/inteve/utils.svg)](https://packagist.org/packages/inteve/utils)\n[![Latest Stable Version](https://poser.pugx.org/inteve/utils/v/stable)](https://github.com/inteve/utils/releases)\n[![License](https://img.shields.io/badge/license-New%20BSD-blue.svg)](https://github.com/inteve/utils/blob/master/license.md)\n\nUtility classes for web development\n\n\u003ca href=\"https://www.janpecha.cz/donate/\"\u003e\u003cimg src=\"https://buymecoffee.intm.org/img/donate-banner.v1.svg\" alt=\"Donate\" height=\"100\"\u003e\u003c/a\u003e\n\n\n## Installation\n\n[Download a latest package](https://github.com/inteve/utils/releases) or use [Composer](http://getcomposer.org/):\n\n```\ncomposer require inteve/utils\n```\n\nInteve\\Utils requires PHP 8.0 or later.\n\n\n## Usage\n\n**DateTimeFactory**\n\n```php\n$dateTimeFactory = new Inteve\\Utils\\DateTimeFactory;\n$now = $dateTimeFactory-\u003ecreate();\n```\n\n\n**Imagick**\n\n``` php\nuse Inteve\\Utils\\ImagickHelper;\n$imagick = ImagickHelper::openImage('file.jpg');\nImagickHelper::resize($imagick, $width, $height, $flags); // same parameters as for Image::resize()\nImagickHelper::saveImage($imagick, 'thumb.jpg');\n\n// and much more!\n```\n\n\n**PaginatorHelper**\n\n```php\n$paginator = new Nette\\Utils\\Paginator;\n$steps = Inteve\\Utils\\PaginatorHelper::calculateSteps($paginator);\n```\n\n\n**XmlDocument**\n\n```php\n$xml = new Inteve\\Utils\\XmlDocument([\n\t'standalone' =\u003e 'yes',\n]);\n$root = $xml-\u003ecreate('urlset');\n\n$item = $root-\u003ecreate('url');\n$item-\u003ecreate('loc')-\u003esetText('http://example.com/');\n\necho $xml-\u003etoString();\n```\n\nPrints:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?\u003e\n\u003curlset\u003e\n\t\u003curl\u003e\n\t\t\u003cloc\u003ehttp://example.com/\u003c/loc\u003e\n\t\u003c/url\u003e\n\u003c/urlset\u003e\n```\n\n**XmlQuery**\n\nWrapper of SimpleXml.\n\n```php\n$query = Inteve\\Utils\\XmlQuery::fromString('\u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?\u003e\n\u003curlset\u003e\n\t\u003curl\u003e\n\t\t\u003cloc\u003ehttp://example.com/\u003c/loc\u003e\n\t\u003c/url\u003e\n\t\u003curl\u003e\n\t\t\u003cloc\u003ehttp://example.com/path\u003c/loc\u003e\n\t\u003c/url\u003e\n\u003c/urlset\u003e');\n\n$urls = [];\n\nforeach ($query-\u003echildren('url') as $url) {\n\t$urls[] = $url-\u003echild('loc')-\u003etext();\n}\n\nvar_dump($urls);\n```\n\nPrints:\n\n```\nhttp://example.com/\nhttp://example.com/path\n```\n\n\n------------------------------\n\nLicense: [New BSD License](license.md)\n\u003cbr\u003eAuthor: Jan Pecha, https://www.janpecha.cz/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finteve%2Futils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finteve%2Futils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finteve%2Futils/lists"}