Search by

palpaka / main

alpaka

Package info

github.com/palpaka/main

pkg:composer/palpaka/main

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0 2020-12-16 08:37 UTC

This package is auto-updated.

Last update: 2026-09-16 22:01:13 UTC


README

Require the package by using composer:

composer require palpaka/main

Use the __main__ function to detect if the script was directly called:

<?php

require __DIR__ . '/vendor/autoload.php';

function main(): int
{
    return 0;
}

if (__main__())
{
    main();
}