PHP Classes

The zillion-file solution :)

Recommend this page to a friend!

      PHP Data Type  >  All threads  >  The zillion-file solution :)  >  (Un) Subscribe thread alerts  
Subject:The zillion-file solution :)
Summary:Remove all, publish one file and a test case
Messages:2
Author:Jon Lennryd
Date:2017-11-22 09:56:43
 

  1. The zillion-file solution :)   Reply   Report abuse  
Picture of Jon Lennryd Jon Lennryd - 2017-11-22 09:56:43
Hi, it is a nice idea, but what about the zillion of files and folders?

To make it usable, can you remove all of it, and keep only the class file and a simple test example?

What you have provided is a one-function solution, so there is no need for any support for installers and so on, as I guess that is what the rest of the files are for.

Keep up the good work, PHPclasses are a fun place!

  2. Re: The zillion-file solution :)   Reply   Report abuse  
Picture of Josantonius Josantonius - 2017-11-22 11:49:36 - In reply to message 1 from Jon Lennryd
Hi Jon, thank you for your feedback.

I understand, but It's an open class and maybe tomorrow I'll add 10 more methods. However, the documentation (https://github.com/Josantonius/PHP-DataType) clearly explains how to download only the necessary files.

For some reason PHPClasses does not update repositories when done in the original. Most of those files don't even exist anymore.

----

INSTALLATION

With Composer [5 FILES]:

$ composer require Josantonius/DataType

Manually [1 FILE]:

$ wget https://raw.githubusercontent.com/Josantonius/PHP-DataType/master/src/DataType.php

QUICK START

With Composer:

require __DIR__ . '/vendor/autoload.php';

use Josantonius\DataType\DataType;

Manually:

require_once __DIR__ . '/DataType.php';

use Josantonius\DataType\DataType;

----

Still, you are free to extract only the method and use it wherever you want :)

Good day!