Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manual installation #19

Open
My1 opened this issue Feb 1, 2016 · 9 comments
Open

manual installation #19

My1 opened this issue Feb 1, 2016 · 9 comments

Comments

@My1
Copy link

My1 commented Feb 1, 2016

is there some way to install this software without some obnoxious alpha software like composer?

@enygma
Copy link
Owner

enygma commented Feb 1, 2016

i'm sorry you see Composer as "obnoxious alpha software" but it really is the easiest way to install the library. Other than that your other option is to include all of the files in the package individually with a require_once or something similar.

@My1
Copy link
Author

My1 commented Feb 1, 2016

it IS an alpha software, and I certainly dont really want to install alpha software to a server.

@enygma
Copy link
Owner

enygma commented Feb 1, 2016

A good deployment process shouldn't run Composer on the production server as a part of a deployment anyway. That sort of thing should be run on a staging/build server and then synced to production.

@My1
Copy link
Author

My1 commented Feb 1, 2016

so composer isnt needed all the time?
but well if composer creates a file that includes everything (the only legit way of letting it run without composer) then it isnt really that hard.

@enygma
Copy link
Owner

enygma commented Feb 1, 2016

When Composer performs its installs, it does two things:

  • It downloads the libraries you've set as required to the local filesystem inside your project (the actual files are there).
  • It provides an autoloader you can use to access these files without having to manually include them all yourself.

The autoloader is essentially doing the require for you - all you need to do is use the namespace and the autoloader (using PHP's own autoloading via spl_autoload_register) and some extra code in Composer locates the libraries for you.

Composer doesn't run dynamically when you request a class in a namespace, you still have to composer install the things you need and it fetches the files from there.

@sagikazarmark
Copy link

Is it really alpha?

Oh, god. I am going to remove it from all the projects and servers.

@My1
Copy link
Author

My1 commented Feb 1, 2016

https://getcomposer.org/download/
I dont see any non-alpha.
I mean nothing against composer as option but there always should be a way without.

@sagikazarmark
Copy link

:trollface:

@Potherca
Copy link
Contributor

@My1 It is in Beta now. Does that appease you?

1.0.0-beta1 (2016-03-03)

On a more serious note, addressing your "problem": This library is PSR-0 compatible. That means you can easily use/create/steal/borrow a PSR-0 autoloader for it.

Downloading the code is as simple as curl/wgeting any release from the release page.

Combining those two you can very easily use this library without Composer. As this library does not advise/support this, doing so is your responsibility, not that of (the author) of this package.

That said, if you need other/further help, feel free to ping me 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants