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

verifyCSRF() never infers login state and never reads globals. Verification fails when no adapter is present. The generateCSRF() and csrfField() static helpers remain deprecated compatibility adapters and also require an explicitly supplied/configured manager.


Http Client

cURL-based HTTP client for making API requests.

The default client accepts only HTTP(S), resolves every hop, rejects multicast and every IANA special-purpose/non-global address class, and pins approved DNS answers for the transport hop. Redirects are handled manually so every destination is revalidated. A single monotonic total deadline covers DNS and all redirect hops; synchronous platform DNS cannot be interrupted mid-call, but its elapsed time is charged and transport is skipped when it exhausts the budget.

Cross-origin redirects retain only a small standard content-negotiation allowlist. Authorization, cookies, AWS session tokens, API keys, client secrets, and caller-defined headers are removed by default. A caller-owned nonstandard field requires explicit allowCrossOriginHeaders() opt-in. Non-idempotent bodies are not replayed unless allowNonIdempotentRedirects() is explicitly enabled.

Trusted server-side callers that deliberately need an internal destination can inject UrlPolicy::trusted(). This is the low-level opt-out; the default policy must be used for request-derived URLs. ClientResponse::toArray() is a safe metadata projection. Use toDebugArray() only in trusted diagnostics because it includes the body, headers, and transport context. ClientResponse::xml() accepts UTF-8 only (with an optional UTF-8 BOM) and rejects DTD/entity-bearing, malformed, unsupported-encoding, and oversized documents.


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:


Development gate

Because Core now declares its existing HasErrors use directly while released php-has-errors 1.0.0 still requires Core, this package checkout must advertise the candidate version when Composer solves development dependencies:

The CI workflow sets COMPOSER_ROOT_VERSION itself. A normal consuming project does not need this environment variable; Composer resolves the two released packages together.

License

MIT License


All versions of php-core with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ext-curl Version *
ext-json Version *
ext-libxml Version *
ext-simplexml Version *
giggsey/libphonenumber-for-php Version ^8.13
timefrontiers/php-has-errors Version ^1.0
timefrontiers/php-validator Version ^1.1.1
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 ...