first version

This commit is contained in:
2023-06-08 00:40:39 +03:00
commit 9e1fd4b8b7
7 changed files with 328 additions and 0 deletions

23
src/CGSelect.php Normal file
View File

@ -0,0 +1,23 @@
<?php
namespace Itguild\PhpCgSelect;
class CGSelect
{
protected $driver;
public function __construct(string $selector, array $options = [])
{
$this->driver = new CGSelectDriver($selector, $options);
}
public function getJS(){
return $this->driver->getJS();
}
public static function renderCDN($version = 'latest')
{
CGSelectDriver::renderCDN($version);
}
}