Git Product home page Git Product logo

Comments (11)

Daandelange avatar Daandelange commented on June 3, 2024

Hey, There already is a composer file which loads some php components and makes updating easy.
Do you mean to publish it in the composer database so it can become a dependency ? I've never done such a thing but I can give it a shot. Any directions ?

from kirby3-simplestats.

MaluNoPeleke avatar MaluNoPeleke commented on June 3, 2024

Oh, I just looked at the installation instructions and couldn't find find composer there so I thought it would be missing.
I still cannot find it at https://packagist.org/search/?query=daandelange%2Fsimplestats (which is the official repository for all composer packages)

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 3, 2024

I have never used composer in my projects, I'm using it as suggested by Kirby's pluginkit. In SimpleStats, Composer installs and loads some PHP libraries...
To me, it's not clear on the Kirby website how to publish a plugin for use with composer projects... but it seems possible : https://getkirby.com/docs/cookbook/setup/composer#using-composer-for-kirby-plugins.
I'll digg further when I find some time.

from kirby3-simplestats.

MaluNoPeleke avatar MaluNoPeleke commented on June 3, 2024

I think the only step missing is that you need to submit it: https://packagist.org/packages/submit

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 3, 2024

There you go : https://packagist.org/packages/daandelange/simplestats
Please let me know if it works correctly.

from kirby3-simplestats.

MaluNoPeleke avatar MaluNoPeleke commented on June 3, 2024

It works but on packagist it says "This package is not auto-updated.". Does it mean that new updates won't be automatically available via composer? I haven't seen this with other pluigns.

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 3, 2024

As I understand it, I have to link my Github account to enable automatic updates. (I prefer not to)
But a semi-automatic mechanism is crawling the repo once a week, grabbing new github releases; plus I can manually hit an "Update now" button if needed; so to me this is not an issue. (The warning seems a bit "big".)

from kirby3-simplestats.

MaluNoPeleke avatar MaluNoPeleke commented on June 3, 2024

Okay, thanks for the explanation

from kirby3-simplestats.

MaluNoPeleke avatar MaluNoPeleke commented on June 3, 2024

After installing it via composer I cannot find any notice of it in my Kirby 3.6.0 beta 3 environment. I have used the kirby-3.6 branch to install and no options added to the config.

from kirby3-simplestats.

Daandelange avatar Daandelange commented on June 3, 2024

I tried on a fresh starterkit updated to kirby 3.6-beta-6 and everything works automagically. The plugin is in site/plugins.
composer require daandelange/simplestats ^0.4.0-beta
Maybe you need "getkirby/composer-installer": "^1.1", ?

from kirby3-simplestats.

MaluNoPeleke avatar MaluNoPeleke commented on June 3, 2024

Sorry, I installed it without specifying the kirby-3.6 branch in composer so that it was the incompatible version 0.3.1

from kirby3-simplestats.

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.