Compile to phar ./compile Run as phar file ./php-search.phar "some text" some.file Run as PHP file php app/index.php "some text" some.file