Afficher/masquer le menu
Liens Ecyseo
  • Tags cloud
  • Daily
  • Pictures wall
  • Search
  • Display options
    • Links per page :
    • 20 links
    • 50 links
    • 100 links
  • RSS Feed
  • Login

J'ai besoin d'intimité. Non pas parce que mes actions sont douteuses, mais parce que votre jugement et vos intentions le sont.

5166 links 

page 1 / 1

Liste des liens

2 results tagged phar x
An application for building and managing Phars.
2018-07-24 11:38 - permalink -

https://box-project.github.io/box2/

phar php
- https://github.com/box-project/box2
Editing Code In a PHAR file – Tricksty
2017-10-12 11:3 - permalink -

Just check your PHP installation directory for pharcommand.phar.

To see help, just type:
phar.phar.bat help
or
"php.exe" "pharcommand.phar" help

Extraction:

Syntax:

extract    Extract a PHAR package to a directory.

           Required arguments:

           -f     Specifies the phar file to work on.

           Optional arguments:

           -i    Specifies a regular expression for input files.
           -x    Regular expression for input files to exclude.
           ...          Directory to extract to (defaults to '.').

So, you need to extract the PHAR using a command like this:
"C:\xampp\php\php.exe" "C:\xampp\php\pharcommand.phar" extract -f "D:\DEV\guzzle.phar" "D:\DEV\Guzzle"

You can use relative paths if you are already in that directory.
But I find it best to give full directory paths to ensure the file gets extracted in the right folder: “D:\DEV\Guzzle”

Then suppose you change a file:
Guzzle\GuzzleHttp\Cookie\CookieJar.php

Re-pack:

Syntax:

pack       Pack files into a PHAR archive.
           When using -s , then the stub file is being excluded from the
           list of input files/dirs.To create an archive that contains PEAR class
           PHP_Archive then point -p argument to PHP/Archive.php.

           Required arguments:

           -f     Specifies the phar file to work on.
           ...          Any number of input files and directories. If -i is in
                        use then ONLY files and matching the given regular
                        expression are being packed. If -x is given then files
                        matching that regular expression are NOT being packed.

It also has a whole bunch of optional arguments that you might find useful.

After changes just re-pack the changed file using:

cd "D:\DEV\Guzzle"
"C:\xampp\php\php.exe" "C:\xampp\php\pharcommand.phar" pack -f "D:\DEV\guzzle.phar" "GuzzleHttp\Cookie\CookieJar.php"

You can even open up a phar file in a text editor like Notepad++ just to see if the changes were done successfully.
Just don’t save the phar file using the text editor because then it will stop working.

phar php
- http://file:///mnt/DDExterne/ScrapBook/data/20170918185449/index.html
page 1 / 1


Tags


  • shaarli
  • wikipedia

Tags cloud

Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation
Affiches "loi aviva" créées par Geoffrey Dorne le 13 Mai, 2020 - Mastodon 1 - Mastodon 2