Skip to Content
Mastering PHP 7
book

Mastering PHP 7

by Branko Ajzele
June 2017
Intermediate to advanced
536 pages
9h 49m
English
Packt Publishing
Content preview from Mastering PHP 7

Creating your own package

Using the composer init command, we can kick off the interactive composer.json generator that we will use later on to distribute our package. The interactive generator raises several questions, as per the following output:

We used foggyline as our vendor name here, whereas mp7 (short for Mastering PHP 7) was used for the package name. Upon completion, the composer.json file is generated with the following content:

{"name": "foggyline/mp7","description": "Just a test package.","type": "library","license": "MIT","authors": [    {"name": "Branko Ajzele","email": "ajzele@gmail.com"    }  ],"require": {}}

Now, let's go ahead ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning PHP 7

Learning PHP 7

Antonio L Zapata (GBP)
Upgrading to PHP 5

Upgrading to PHP 5

Adam Trachtenberg

Publisher Resources

ISBN: 9781785882814Supplemental Content