Giter Site home page Giter Site logo

launcher's Introduction

Latest Stable Version GitHub stars Total Downloads GitHub Workflow Status Scrutinizer code quality Code Coverage Mutation testing badge License Donate!

OS Launcher

Description

Allows you to launch a file or a resource with the default OS application.

Requirements

  • PHP >= 7.1

Installation

composer require loophp/launcher

Usage

<?php

declare(strict_types = 1);

include 'vendor/autoload.php';

use loophp\launcher\Launcher;

// Open the default browser.
Launcher::open('https://github.com/loophp/launcher');

// Open the default file manager.
Launcher::open('/tmp');

// Open the default file manager.
Launcher::open('C:\Windows');

// The parameter $resource is variadic.

// Open multiple resources.
Launcher::open('https://google.com', 'https://github.com');

Code quality, tests and benchmarks

Every time changes are introduced into the library, Github CI run the tests and the benchmarks.

The library has tests written with PHPSpec. Feel free to check them out in the spec directory. Run composer phpspec to trigger the tests.

Before each commit some inspections are executed with GrumPHP, run ./vendor/bin/grumphp run to check manually.

Contributing

Feel free to contribute to this library by sending Github pull requests. I'm quite reactive :-)

launcher's People

Contributors

dependabot[bot] avatar drupol avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

deawx

launcher's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.


Warning

Renovate failed to look up the following dependencies: Failed to look up packagist package drupol/phpspec-requires.

Files affected: composer.json


Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

composer
composer.json
  • php >= 7.1.3
  • drupol/phposinfo ^1.6
  • symfony/process ^4.3 || ^4.4 || ^5 || ^6
  • drupol/php-conventions ^2.0.2 || ^3.0.0 || ^5.0.0
  • drupol/phpspec-annotation ^1.2.0
  • drupol/phpspec-requires ^1.1
  • friends-of-phpspec/phpspec-code-coverage ^4.3.2 || ^6.0.0
  • friends-of-phpspec/phpspec-requires ^1.1
  • phpspec/phpspec ^7.0
  • phptaskman/changelog ^1.0
github-actions
.github/workflows/continuous-integration.yml
  • actions/checkout v4
  • shivammathur/setup-php 2.22.0
  • actions/cache v3.2.5
.github/workflows/prune.yaml
  • actions/stale v7
.github/workflows/release.yaml
  • actions/checkout v4
  • mindsers/changelog-reader-action v2
  • actions/create-release v1.1.4

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.