efureev / support
PHP Support Package is a collection of useful functions and snippets
v5.2.0
2026-06-04 00:15 UTC
Requires
- php: ^8.4
- ext-mbstring: *
Requires (Dev)
- ergebnis/composer-normalize: ^2.52
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^12.5
- squizlabs/php_codesniffer: ^4.0
- symfony/var-dumper: ^8.1
This package is auto-updated.
Last update: 2026-06-04 00:18:09 UTC
README
Install
For php >= 8.4
composer require efureev/support "^5.1"
For php >= 8.1 (8.1, 8.2, 8.3)
composer require efureev/support "^4.19"
For php >= 7.4 and <=8.0
composer require efureev/support "^3.0"
For php >= 7.2 && <=7.4
composer require efureev/support "^2.0"
Content
-
Helpers
- Array
- collapse (^4.16.0)
- prepend (^4.16.0)
- accessible
- dataToArray
- duplicates
- exists
- fillKeysByValues
- fromPostgresArray
- fromPostgresArrayWithBraces
- fromPostgresPoint (^4.8.0)
- get
- has
- map (^4.27.0)
- merge
- random (^4.25.0)
- remove
- removeByValue
- replaceByTemplate
- set
- toArray
- toIndexedArray
- toPostgresArray
- toPostgresPoint (^4.8.0)
- String
- isRegExp
- removeAccents (^4.9.0)
- removeMultiSpace
- replaceByTemplate
- replaceStrTo
- seemsUTF8 (^4.9.0)
- slugify (^4.9.0)
- slugifyWithFormat
- toCamel
- toCamelInitCase
- toDelimited
- toKebab
- toLowerCamel
- toScreamingDelimited
- toScreamingSnake
- toSnake
- trimPrefix
- trimSuffix
- truncate (^4.9.0)
- Json
- decode
- encode
- htmlEncode
- Bit
- addFlag
- checkFlag
- decBinPad
- exist
- grant
- removeFlag
- B64
- decode
- decodeSafe
- encode
- encodeSafe
- Number
- isInteger (^4.14.0)
- safeInt (^4.1.0)
- Array
-
Global functions
- attributeToGetterMethod (^4.28.0)
- attributeToSetterMethod (^4.28.0)
- classNamespace
- class_basename
- class_uses_recursive
- dataGet (^4.16.0)
- does_trait_use (^4.4.0)
- eachValue (^4.15.0)
- findGetterMethod (^4.28.0)
- findSetterMethodByProp
- getPropertyValue (^4.28.0)
- instance
- isTrue
- mapValue (^4.15.0)
- public_property_exists (^4.28.0)
- remoteCall (^4.3.1)
- remoteStaticCall (^4.3.1)
- remoteStaticCallOrThrow (^4.7.0)
- trait_uses_recursive
- value
- when
-
Enums (^4.19.0)
- casesToEscapeString
- casesToString
- hasName
- hasValue
- names
- toKeyValueArray (^4.27.0)
- toValueKeyArray (^4.27.0)
- values
-
Exceptions
- ConfigException
- Exception
- InvalidArgumentException
- InvalidCallException
- InvalidConfigException
- InvalidParamException
- InvalidValueException
- MethodNotAllowedException
- MissingClassException
- MissingConfigException
- MissingPropertyException
- MissingMethodException (^4.7.0)
- NotSupportedException
- UnknownMethodException
- UnknownPropertyException
-
Interfaces
- Arrayable
- Command
- Jsonable
- Prototype
-
Structures
- Collections (^4.16.0)
- ArrayCollection
- HashCollection (^5.1.0)
- Collections (^4.16.0)
-
ConditionalHandler
-
Storage (^5.0.0)
-
Traits
- UseStorage
- UseConfigurableStorage
- UseErrorsBox
- ConfigurableTrait
- ConsolePrint
- HasPrePostActions
- Maker
- Metable
- ReadOnlyProperties
- Singleton
- Thrower
- TraitBooter
- TraitInitializer
- Whener
-
Types
- GeoPoint
- Point
Test
composer test composer test-cover # with coverage