PHP Classes

File: app/products.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Minimalist PHP Sales Site   app/products.php   Download  
File: app/products.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: Minimalist PHP Sales Site
Implement a sales site from configuration files
Author: By
Last change:
Date: 2 years ago
Size: 787 bytes
 

Contents

Class file image Download
<?php

return [
    [
       
'isVisible' => true,
       
'productName' => 'Red Cup ?',
       
'productUrl' => '/product',
       
'productImage' => 'https://source.unsplash.com/250x250/?coffee,cup',
    ],
    [
       
'isVisible' => false,
       
'productName' => 'Blue Mug',
       
'productUrl' => '/product/mug',
       
'productImage' => '/assets/images/blue-mug.png',
    ],
    [
       
'isVisible' => false,
       
'productName' => 'Tea Cup',
       
'productUrl' => '/product/tea',
       
'productImage' => 'https://source.unsplash.com/250x250/?cup,tea',
    ],
    [
       
'isVisible' => false,
       
'productName' => 'Fruit Juice',
       
'productUrl' => '/product/juice',
       
'productImage' => 'https://source.unsplash.com/250x250/?juice,fruit',
    ],
];