PHP code example of coretsia / core-foundation

1. Go to this page and download the library: Download coretsia/core-foundation library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

coretsia / core-foundation example snippets


return [
    'container' => [
        'autowire_concrete' => true,
        'allow_reflection_for_concrete' => true,
    ],
    'ids' => [
        'default' => 'ulid',
    ],
    'reset' => [
        'tag' => 'kernel.reset',
    ],
];

return [
    'foundation' => [
        'container' => [],
    ],
];

public function get(string $key): mixed

public function generate(): string

hrtime(true)

hrtime(true) - $startedAt

intdiv($durationNs, 1_000_000)
text
framework/packages/core/foundation/config/foundation.php
text
strlen
text
docs/ssot/json-like-runtime-values.md
text
/\A[0-9A-HJKMNP-TV-Z]{26}\z/
text
Coretsia\Contracts\Context\ContextKeys::CORRELATION_ID
text
/\A[0-9A-HJKMNP-TV-Z]{26}\z/
text
Psr\Clock\ClockInterface
text
Psr\Clock\ClockInterface
text
/\A[0-9A-HJKMNP-TV-Z]{26}\z/
text
microtime(true)