Php 无法声明类HunteRobFousator,因为该名称已在使用中

Php 无法声明类HunteRobFousator,因为该名称已在使用中,php,laravel,Php,Laravel,我以前从未使用过PHP,但我正在尝试检查PHP项目中的库。 假设我有一个test/License.php文件,我想使用一个名为hunterbfousator的库 根据文档,我复制了hunterbfousator.php文件并粘贴到同一目录中,如test/hunterbfousator.php 然后在License.php中,我使用如下库: <?php require_once 'HunterObfuscator.php'; class LicenseController extends C

我以前从未使用过PHP,但我正在尝试检查PHP项目中的库。 假设我有一个
test/License.php
文件,我想使用一个名为hunterbfousator的库

根据文档,我复制了hunterbfousator.php文件并粘贴到同一目录中,如
test/hunterbfousator.php

然后在
License.php
中,我使用如下库:

<?php
require_once 'HunterObfuscator.php';
class LicenseController extends Controller {
  public function licenseControl(Request $req) {
    $jsCode = "alert('Hello world!');"; //Simple JS code
    $hunter = new HunterObfuscator($jsCode); //Initialize with JS code in parameter
    $obsfucated = $hunter - > Obfuscate(); //Do obfuscate and get the obfuscated code

  }

}

那么,您需要删除哪些内容?似乎已经包括在内。你是什么意思?自动加载器是否已经加载了HunterbfFousator?尝试注释行
require_once'hunterbfousator.php'。未加载。如果不调用,它将返回错误
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
Cannot declare class HunterObfuscator, because the name is already in use