Download the PHP package syntatis/utils without Composer

On this page you can find all versions of the php package syntatis/utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package utils

🧰 utils-php

Packagist Dependency Version php codecov Packagist Downloads

The syntatis/utils package provides a variety of utility functions to simplify common tasks in PHP, including validation, case conversion, and inflection.

Installation

You can install the package via Composer:

Usage

Validator

This package includes several functions for validating values, such as checking if a value is an email, URL, or whether it is blank.

Function Description
Val::isBlank Checks if a value is blank or empty.
Val::isEmail Checks if a value is a valid email address.
Val::isURL Checks if a value is a valid URL.
Val::isUUID Checks if a value is a valid UUID.
Val::isSemVer Checks if a value is in valid SemVer format.
Val::isIPAddress Checks if a value is a valid IPv4 or IPv6 address.
Val::isUnique Checks if all elements in a collection are unique.

Examples

Strings

This package includes several functions to handle strings, such as converting a string to camel case, makes a word plural, or checking if a string starts with a specific substring.

Function Description
Str::toCamelCase Converts a string to camel case e.g. foo_bar to fooBar.
Str::toSnakeCase Converts a string to snake case e.g. fooBar to foo_bar.
Str::toKebabCase Converts a string to kebab case e.g. fooBar to foo-bar.
Str::toPascalCase Converts a string to Pascal case e.g. foo_bar to FooBar.
Str::toTitleCase Converts a string to title case e.g. foo_bar to Foo Bar.
Str::toSentenceCase Converts a string to sentence case e.g. foo_bar to Foo bar.
Str::toLowerCase Converts a string to lower case e.g. FooBar to foobar.
Str::toUpperCase Converts a string to upper case e.g. fooBar to FOOBAR.
Str::toMacroCase Converts a string to macro case e.g. fooBar to FOO_BAR.
Str::toCobolCase Converts a string to Cobol case e.g. fooBar to FOO-BAR.
Str::toPlural Pluralizes a word e.g. apple to apples.
Str::toSingular Singularizes a word e.g. apples to apple.
Str::toSlug Slugifies a string e.g. Hello, World! to hello-world.
Str::startsWith Check if a string starts with a specific substring.
Str::endsWith Check if a string ends with a specific substring.

Examples


All versions of utils with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
doctrine/inflector Version ^2.0
jawira/case-converter Version ^3.5
psr/http-message Version ^1.0
symfony/deprecation-contracts Version ^2.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package syntatis/utils contains the following files

Loading the files please wait ....