for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace frictionlessdata\datapackage;
class Package
{
public static function load($source, $basePath = null)
return Factory::datapackage($source, $basePath);
}
public static function validate($source, $basePath = null)
return Factory::validate($source, $basePath);
public static function create($descriptor = null, $basePath = null)
$descriptor = Utils::objectify($descriptor);
if ($descriptor && !isset($descriptor->resources)) {
$descriptor->resources = [];
$packageClass = Factory::getDatapackageClass($descriptor);
return new $packageClass($descriptor, $basePath, true);