Download the PHP package permafrost-dev/php-code-search without Composer

On this page you can find all versions of the php package permafrost-dev/php-code-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-code-search

Searching PHP source code made easy

php-code-search logo

Package Version Downloads license Test Run Status code coverage


Search PHP source code for function & method calls, variable assignments, classes and more directly from PHP.


Installation

Searching

To search a file, use the search method. Its only parameter may be either a string containing a valid filename or an instance of \Permafrost\PhpCodeSearch\Support\File.

To search a string instead, use the searchCode method.

The search methods return an instance of Permafrost\PhpCodeSearch\Results\FileSearchResults, which has a results property.

Each result is an instance of Permafrost\PhpCodeSearch\Results\SearchResult with the following properties:

Searching

To search through the code in a string or file, use the Searcher class:

To search a file, use the search method, and the searchCode method to search a string of code.

When searching using any of the available methods, regular expressions can be used by surrounding the name with slashes /, i.e. /test\d+/.

Variable names

To search for variables by name, use the variables method.

Functions

To search for function calls or definitions, use the functions method.

Method calls

To search for a method call by name, use the methods method.

Method call nodes have an args property that can be looped through to retrieve the arguments for the method call.

Static calls

To search for static method or property calls, use the static method.

Valid search terms are either a class name like Cache, or a class name and a method name like Cache::remember.

Classes

To search for either a class definition or a class created by the new keyword, use the classes method.

Variable assignments

To search for a variable assignment by variable name, use the assignments method. Note: The $ should be omitted.

Results without code snippets

To return search results without associated code snippets, use the withoutSnippets method:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of php-code-search with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
nikic/php-parser Version ^5.0
permafrost-dev/code-snippets Version ^1.2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package permafrost-dev/php-code-search contains the following files

Loading the files please wait ....