Download the PHP package nukzar/php7new without Composer

On this page you can find all versions of the php package nukzar/php7new. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php7new

Это домашнее задание на тему php7 и его новых возможностей

  1. В PHP 7.0 добавлена поддержка объявления возвращаемого типа.
    public function __construct(int $id) { $this->id = $id; } public function getId(): int { return $this->id; }
  2. В PHP 7.0 добавлена строгая типизация
    В PHP 7.1 Поддержка модификаторов видимости для констант класса
    private const PRIVATE_CONST = 0; protected const PROTECTED_CONST = 0; public const PUBLIC_CONST_TWO = 0; // Весь список имеет одну область видимости private const FOO = 1, BAR = 2;
  3. В PHP 7.2 Добавлен алгоритм Argon2 в хешировании пароля
    Argon2 — это современный простой алгоритм, направленный на высокую скорость заполнения памяти и эффективное использование нескольких вычислительных блоков. echo 'Хеш Argon2i: ' . password_hash('rasmuslerdorf', PASSWORD_ARGON2I); // Хеш Argon2i: // $argon2i$v=19$m=1024,t=2,p=2$YzJBSzV4TUhkMzc3d3laeg$zqU/1IN0/AogfP4cmSJI1vc8lpXRW9/S0sYY2i2jHT0
  4. В PHP 7.3 Добавление функции is_countable()
    if (is_countable($someVar)) { echo count($someVar); } else { echo ‘$someVar is not countable’; }
  5. В PHP 7.3 Добавление функций array_key_first() и array_key_last()
    // usage of an associative array $array = ['a' => 1, 'b' => 2, 'c' => 3]; $firstKey = array_key_first($array); assert($firstKey === 'a'); // usage of a numeric array $array = [1 => 'a', 2 => 'b', 3 => 'c']; $firstKey = array_key_first($array); assert($firstKey === 1);
  6. В PHP 7.4 Добавление Типизированные свойства классов
    class Bar { public string $name; protected ?int $amount; private Foo $foo; }

Уствновка

git clone https://github.com/TkachukV/php7new.git

Licinse

Этот проект лицензирован по лицензии MIT - подробности см. В файле LICENSE


All versions of php7new with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nukzar/php7new contains the following files

Loading the files please wait ...