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,513 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  
Name: Manolo Salsas <contact>
Classes: 9 packages by
Country: Spain Spain
Age: 42
All time rank: 306478 in Spain Spain
Week rank: 170 Up5 in Spain Spain Up
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

  Files folder image Files (67)  /  assets  
File Role Description
Files folder imagecontrollers (1 file)
Files folder imagestyles (2 files)
  Accessible without login Plain text file app.js Data Auxiliary data
  Accessible without login Plain text file bootstrap.js Data Auxiliary data
  Accessible without login Plain text file controllers.json Data Auxiliary data

  Files folder image Files (67)  /  assets  /  controllers  
File Role Description
  Accessible without login Plain text file hello_controller.js Data Auxiliary data

  Files folder image Files (67)  /  assets  /  styles  
File Role Description
  Accessible without login Plain text file app.css Data Auxiliary data
  Accessible without login Plain text file global.scss Data Auxiliary data

  Files folder image Files (67)  /  bin  
File Role Description
  Accessible without login Plain text file console Example Example script
  Accessible without login Plain text file phpunit Data Auxiliary data

  Files folder image Files (67)  /  config  
File Role Description
Files folder imagepackages (14 files, 3 directories)
Files folder imageroutes (2 files, 1 directory)
  Plain text file bundles.php Class Class source
  Accessible without login Plain text file preload.php Aux. Auxiliary script
  Accessible without login Plain text file routes.yaml Data Auxiliary data
  Accessible without login Plain text file services.yaml Data Auxiliary data

  Files folder image Files (67)  /  config  /  packages  
File Role Description
Files folder imagedev (3 files)
Files folder imageprod (4 files)
Files folder imagetest (5 files)
  Accessible without login Plain text file assets.yaml Data Auxiliary data
  Accessible without login Plain text file cache.yaml Data Auxiliary data
  Accessible without login Plain text file doctrine.yaml Data Auxiliary data
  Accessible without login Plain text file doctrine_migrations.yaml Data Auxiliary data
  Accessible without login Plain text file framework.yaml Data Auxiliary data
  Accessible without login Plain text file mailer.yaml Data Auxiliary data
  Accessible without login Plain text file notifier.yaml Data Auxiliary data
  Accessible without login Plain text file routing.yaml Data Auxiliary data
  Accessible without login Plain text file security.yaml Data Auxiliary data
  Accessible without login Plain text file sensio_framework_extra.yaml Data Auxiliary data
  Accessible without login Plain text file translation.yaml Data Auxiliary data
  Accessible without login Plain text file twig.yaml Data Auxiliary data
  Accessible without login Plain text file validator.yaml Data Auxiliary data
  Accessible without login Plain text file webpack_encore.yaml Data Auxiliary data

  Files folder image Files (67)  /  config  /  packages  /  dev  
File Role Description
  Accessible without login Plain text file debug.yaml Data Auxiliary data
  Accessible without login Plain text file monolog.yaml Data Auxiliary data
  Accessible without login Plain text file web_profiler.yaml Data Auxiliary data

  Files folder image Files (67)  /  config  /  packages  /  prod  
File Role Description
  Accessible without login Plain text file deprecations.yaml Data Auxiliary data
  Accessible without login Plain text file doctrine.yaml Data Auxiliary data
  Accessible without login Plain text file monolog.yaml Data Auxiliary data
  Accessible without login Plain text file webpack_encore.yaml Data Auxiliary data

  Files folder image Files (67)  /  config  /  packages  /  test  
File Role Description
  Accessible without login Plain text file doctrine.yaml Data Auxiliary data
  Accessible without login Plain text file monolog.yaml Data Auxiliary data
  Accessible without login Plain text file validator.yaml Data Auxiliary data
  Accessible without login Plain text file webpack_encore.yaml Data Auxiliary data
  Accessible without login Plain text file web_profiler.yaml Data Auxiliary data

  Files folder image Files (67)  /  config  /  routes  
File Role Description
Files folder imagedev (1 file)
  Accessible without login Plain text file annotations.yaml Data Auxiliary data
  Accessible without login Plain text file framework.yaml Data Auxiliary data

  Files folder image Files (67)  /  config  /  routes  /  dev  
File Role Description
  Accessible without login Plain text file web_profiler.yaml Data Auxiliary data

  Files folder image Files (67)  /  public  
File Role Description
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files (67)  /  src  
File Role Description
Files folder imageController (1 file)
Files folder imageEntity (2 files)
Files folder imageForm (2 files)
Files folder imageService (1 file)
  Plain text file Kernel.php Class Class source

  Files folder image Files (67)  /  src  /  Controller  
File Role Description
  Plain text file MainController.php Class Class source

  Files folder image Files (67)  /  src  /  Entity  
File Role Description
  Plain text file FindFiles.php Class Class source
  Plain text file FindText.php Class Class source

  Files folder image Files (67)  /  src  /  Form  
File Role Description
  Plain text file FindFilesType.php Class Class source
  Plain text file FindTextType.php Class Class source

  Files folder image Files (67)  /  src  /  Service  
File Role Description
  Plain text file FindCommandService.php Class Class source

  Files folder image Files (67)  /  templates  
File Role Description
Files folder imagemain (2 files)
  Accessible without login Plain text file base.html.twig Data Auxiliary data

  Files folder image Files (67)  /  templates  /  main  
File Role Description
  Accessible without login Plain text file index.html.twig Data Auxiliary data
  Accessible without login Plain text file success.html.twig Data Auxiliary data

  Files folder image Files (67)  /  tests  
File Role Description
  Plain text file bootstrap.php Class Class source

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,513
This week:488Up