PHP Classes

PHP Find Text in Files: Search text in files like the Linux command

Recommend this page to a friend!
  Info   Example   Demos   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 59 All time: 10,526 This week: 488Up
Version License PHP version Categories
find-linux-command 1.0Custom (specified...5PHP 5, Files and Folders, Searching, C...
Description 

Author

This package can search text in files like the Linux command.

It provides a command service based on the Symfony framework to find text in files according to parameters passed in the command line.

The package can take command-line arguments that determine the limit of the depth of directories when traversing directories recursively and if the text search will be case sensitive or insensitive.

Picture of Manolo Salsas
  Performance   Level  
Innovation award
Innovation award
Nominee: 6x

Winner: 1x

 

Example

#!/usr/bin/env php
<?php

use App\Kernel;
use
Symfony\Bundle\FrameworkBundle\Console\Application;

if (!
is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
    throw new
LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}

require_once
dirname(__DIR__).'/vendor/autoload_runtime.php';

return function (array
$context) {
   
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);

    return new
Application($kernel);
};


Details

Find Linux Command

Web application for finding linux commands to find files or text in files.

DEMO

1. Install

git clone git@github.com:msalsas/find-linux-command.git
cd find-linux-command
composer install
npm install
npm run build

2. Run

Download symfony installer and start the server:

symfony server:start

Go to http://127.0.0.1:8000/


  Files folder image Files (67)  
File Role Description
Files folder imageassets (3 files, 2 directories)
Files folder imagebin (2 files)
Files folder imageconfig (4 files, 2 directories)
Files folder imagepublic (1 file)
Files folder imagesrc (1 file, 4 directories)
Files folder imagetemplates (1 file, 1 directory)
Files folder imagetests (1 file)
Accessible without login Plain text file .env Data Auxiliary data
Accessible without login Plain text file .env.test Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file docker-compose.override.yml Data Auxiliary data
Accessible without login Plain text file docker-compose.yml Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file package-lock.json Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file Procfile Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file symfony.lock Data Auxiliary data
Accessible without login Plain text file webpack.config.js Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:59
This week:0
All time:10,526
This week:488Up