新增zip&composer工具

This commit is contained in:
JaguarJack
2020-07-21 08:01:20 +08:00
parent 30f405f233
commit f0351246fc
4 changed files with 118 additions and 4 deletions

View File

@@ -19,6 +19,11 @@ class Composer
return $this->composerContent()['autoload']['psr-4'];
}
public function requires()
{
return $this->composerContent()['require'];
}
protected function composerContent()
{
return \json_decode(FileSystem::get($this->composerJsonPath()), true);