Version 1
[yaffs-website] / vendor / alchemy / zippy / src / Resource / PathUtil.php
diff --git a/vendor/alchemy/zippy/src/Resource/PathUtil.php b/vendor/alchemy/zippy/src/Resource/PathUtil.php
new file mode 100644 (file)
index 0000000..ec7a46a
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+/*
+ * This file is part of Zippy.
+ *
+ * (c) Alchemy <info@alchemy.fr>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Alchemy\Zippy\Resource;
+
+abstract class PathUtil
+{
+    public static function basename($path)
+    {
+        return (false === $pos = strrpos(strtr($path, '\\', '/'), '/')) ? $path : substr($path, $pos + 1);
+    }
+}
\ No newline at end of file