Composer, PHP Advanced Features




CS174

Chris Pollett

Apr 12, 2021

Outline

Composer

Composer

Example Composer Project Using Yioop

Comments on the Example

Quiz

Which of the following statements is true?

  1. The syntax class A : B, C {} is how in PHP we could say class A is a subclass of class B and class C.
  2. Regardless, of where you store classes in your file system as long as the class name is the same as the file name, php can find and load the class definition without a require statement.
  3. A popular naming convention for project namespaces is: vendor_name\project_name .

Traits

Exceptions

Generators

Variable and Anonymous Functions