Download the PHP package timefrontiers/php-core without Composer

On this page you can find all versions of the php package timefrontiers/php-core. 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 php-core

TimeFrontiers PHP Core

Core utilities, enums, and helpers for TimeFrontiers packages.

PHP Version

Installation

Requirements

Package Contents

Class Description
AccessRank Enum for user access levels (int-backed)
AccessGroup Enum for user access groups (string-backed)
HttpStatus Enum for HTTP status codes
Http HTTP utilities (redirect, JSON responses, headers)
Header HTTP header utilities (status, redirects, caching)
Client HTTP client using cURL
Request Request parameter handling with validation
Url URL manipulation utilities
Str String utilities
Time Date/time utilities
Phone Phone number parsing, formatting, country/continent lookup

AccessRank Enum

User access levels for permission control and error visibility filtering.

Rank Values

Rank Value Description
GUEST 0 Public users
USER 1 Logged in users
ANALYST 2 Data analysts
ADVERTISER 3 Advertisers
MODERATOR 4 Staff (internal errors)
EDITOR 5 Content editors
ADMIN 6 Administrators
DEVELOPER 7 Developers (system errors)
SUPERADMIN 8 Super admins (debug errors)
OWNER 14 Full access

AccessGroup Enum

String-backed version of AccessRank for database storage.


HttpStatus Enum

HTTP status codes with helper methods.


Http Utilities


Request Handling


Http Client

cURL-based HTTP client for making API requests.


Http Header

HTTP header utilities for responses.


Time (Date/Time Utilities)

Date and time formatting and manipulation.


URL Utilities


String Utilities

Need random strings? Use TimeFrontiers\Data\Random from timefrontiers/php-data — it's CSPRNG-backed with alphanumeric, hex, base64, uuid, numeric, and more. Str::random no longer exists in php-core.


Phone Utilities

Static wrapper around giggsey/libphonenumber-for-php for parsing, validating, formatting, and geolocating phone numbers. Every method returns null (or false for is* checks) on failure — no exceptions thrown.

Formatting

Country & continent lookup

Supported continents: Africa, Asia, Europe, North America, South America, Oceania, Antarctica. The internal map covers all 249 ISO 3166-1 alpha-2 codes.

Line type & carrier

Possible type() values: mobile, landline, fixed_or_mobile, toll_free, premium_rate, shared_cost, voip, personal_number, pager, uan, voicemail, unknown.

Validation

Structured parse

One call returning everything at once — handy for logging or API responses:

Normalization

Cheap, no libphonenumber needed — useful as a pre-store cleanup:


License

MIT License


All versions of php-core with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
giggsey/libphonenumber-for-php Version ^8.13
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 timefrontiers/php-core contains the following files

Loading the files please wait ...