I
I
Ivan Kolotilkyn2020-01-04 11:04:15
Django
Ivan Kolotilkyn, 2020-01-04 11:04:15

How to create your .phar from your class or .php file?

actually the question is about phar
, let's say there is a class that is in SimpleClass.php

<?php
class SimpleClass
{
    // объявление свойства
    public $var = 'значение по умолчанию';

    // объявление метода
    public function displayVar() {
        echo $this->var;
    }
}

how to actually make a ready-made SimpleClass.phar out of this SimpleClass.php

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-01-04
@asurahan

https://odan.github.io/2017/08/16/create-a-php-pha...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question