palpaka/main

Maintainers

Details

github.com/palpaka/main

Source

Issues

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/palpaka/main

1.0.0 2020-12-16 08:37 UTC

This package is auto-updated.

Last update: 2025-12-16 20:19:56 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();
}