Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • Finder
  • Glob
  • SplFileInfo
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Glob

Glob matches globbing patterns against text.

if match_glob("foo.*", "foo.bar") echo "matched\n";

// prints foo.bar and foo.baz $regex = glob_to_regex("foo.*"); for (array('foo.bar', 'foo.baz', 'foo', 'bar') as $t) { if (/$regex/) echo "matched: $car\n"; }

Glob implements glob(3) style matching that can be used to match against text, rather than fetching names from a filesystem.

Based on the Perl Text::Glob module.

Namespace: Symfony\Component\Finder
Copyright: 2004-2005 Fabien Potencier <fabien@symfony.com>
Copyright: 2002 Richard Clamp <richardc@unixbeard.net>
Author: Fabien Potencier <fabien@symfony.com> PHP port
Author: Richard Clamp <richardc@unixbeard.net> Perl version
Located at finder/Symfony/Component/Finder/Glob.php
Methods summary
public static string
# toRegex( string $glob, Boolean $strictLeadingDot = true, Boolean $strictWildcardSlash = true )

Returns a regexp which is the equivalent of the glob pattern.

Returns a regexp which is the equivalent of the glob pattern.

Parameters

$glob
string
$glob The glob pattern
$strictLeadingDot
Boolean
$strictLeadingDot
$strictWildcardSlash
Boolean
$strictWildcardSlash

Returns

string
regex The regexp
php-coveralls API documentation generated by ApiGen 2.8.0