o / sitemap-php

Library for generating Google sitemap XML files
MIT License
300 stars 177 forks source link

instructions without composer #27

Closed MissAnna123 closed 5 years ago

MissAnna123 commented 7 years ago

Hi, Can we have the instruction for installation and use without composer ?

for exemple : without composer, we don"t have : "use XMLWriter;". Thanks for, Best regards.

MissAnna123 commented 7 years ago

Hi,

I asked you the question, beaucoup some product give the solution without composer :

for exemple this product  I use : https://github.com/matthiasmullie/minify/issues/83

I have no composer on the website I developped :-(

I use your product since few years... and I don't find other product to generat sitemap :-(

Do you know on other product without composer ?

Thanks for.

Le 21/11/2017 à 16:45, Evert Pot a écrit :

Composer is required. And PHP namespaces are not in any way related to composer |use x| is part of PHP since version 5.4.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/o/sitemap-php/issues/27#issuecomment-346067676, or mute the thread https://github.com/notifications/unsubscribe-auth/AgTOtO9MxYolnCH6zdfnCWVybaW2tIPzks5s4vAdgaJpZM4Ql4j5.

evert commented 7 years ago

I misspoke, I thought this was a question for a project I manage but it;s not, so I quickly deleted my comment afterwards. Really sorry about that.I can't speak for this project, but I would strongly suggest you upgrade your development environment and start learning composer

MissAnna123 commented 7 years ago

arf, sorry,

I only use small computer hosting where I don't have the hand on the server. That's why I don't have composer :-(

I used yor sitemap production, the version of 2015.. aber I can not update your product on my developped website, because I can not update my developement environment, that's only small hosting.

Thanks for your answer... Your product version 2015 is running on PHP7.1...  I did the migration php 5.6 to php7.

Best regards.

Le 21/11/2017 à 16:56, Evert Pot a écrit :

I misspoke, I thought this was a question for a project I manage but it;s not, so I quickly deleted my comment afterwards. Really sorry about that.I can't speak for this project, but I would strongly suggest you upgrade your development environment and start learning composer

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/o/sitemap-php/issues/27#issuecomment-346071283, or mute the thread https://github.com/notifications/unsubscribe-auth/AgTOtM9ZBKST9AOWX2lZt_Y4UDAfNKk5ks5s4vKcgaJpZM4Ql4j5.

o commented 7 years ago

Hi @MissAnna123,

I am also planning to upgrade this library to use with composer and PHP7. And the master version of library is not complete. I would also suggest to upgrade your environment and start using composer like @evert (Hi man, hello from cloudy A'dam)

So you can still use the old version https://github.com/o/sitemap-php/tree/36cc358e3914e78d4e1b332ec535991c3f3f4885 And you can download from here as zip. https://github.com/o/sitemap-php/archive/36cc358e3914e78d4e1b332ec535991c3f3f4885.zip

O.

MissAnna123 commented 7 years ago

thanks. I know that I will need to change hosting if I want to use ssh and composer :-(. best regards, thanks for answer.

evert commented 7 years ago

@MissAnna123 composer is just a small php tool. Anything that supports PHP will support composer just fine.

MissAnna123 commented 7 years ago

Sure... I have two different hosting... any of them let me having a console ... snif I search a solution :-(.. I don't know how for the moment. I manage volunteer website actually without console.. with old hosting.. no console on server.. then I actually don't find solution how to install composer using command line !

MissAnna123 commented 7 years ago

Hi, theres a probleme with the installation with composer 👍 https://packagist.org/packages/osm/sitemap-php

xxxxxxxxxxxxxxxx\composer>composer require osm/sitemap-php

[InvalidArgumentException] Could not find package osm/sitemap-php at any version for your minimum-stab ility (stable). Check the package spelling or your minimum-stability

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [-- ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o| --optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [< packages>]...

o commented 7 years ago

Hi please use fork of @evert temporarily. This repository still not stable. Thanks

composer require evert/sitemap-php

mort3za commented 6 years ago

@MissAnna123 I had the same issue. You can run this command: composer require "osm/sitemap-php @dev"
But it's better that maintainer of this repo generate a release in github to fix this problem.