Git Product home page Git Product logo

Comments (5)

ywarnier avatar ywarnier commented on July 18, 2024

my idea (for now) was to keep chash a one-file script to make it easy to just downlad-and-execute. IS there any way to do that for the console element? (bundle it inside the same file)

from chash.

jmontoyaa avatar jmontoyaa commented on July 18, 2024

As far as I know is not possible to do it in one file.

from chash.

jmontoyaa avatar jmontoyaa commented on July 18, 2024

One question: If we add a code in chash that code will only exist in the chash.php file (In order to work in all chamilo installation) right?
So for example in task #2 we have to write the code twice if we want that functionality in a Chamilo portal (web UI).

from chash.

jmontoyaa avatar jmontoyaa commented on July 18, 2024

In fact we can do it using phars files, we can write our code in different files then you can "compress" all PHP files into a single file something like "chash.phar", then you can execute the file.
Composer works like that!

See: http://phpmaster.com/packaging-your-apps-with-phar/
or
http://www.slideboom.com/presentations/26182/PHP-5.3-Part-3---Introducing-PHAR

from chash.

jmontoyaa avatar jmontoyaa commented on July 18, 2024

Creando un archivo phar funciona muy bien

chash

from chash.

Related Issues (20)

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.