GithubHelp home page GithubHelp logo

barryvanveen / lastfm Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 6.0 148 KB

๐ŸŽถ Last.fm API client for PHP. Comes with a Laravel service provider.

License: MIT License

PHP 99.92% Makefile 0.03% Dockerfile 0.05%
lastfm lastfm-api laravel laravel-package php

lastfm's People

Contributors

barryvanveen avatar bruno7kp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lastfm's Issues

Class 'Barryvanveen\Lastfm\LastfmServiceprovider' not found

Detailed description

After installing package via composer, I cannot propery initialize package in laravel app.

Class 'Barryvanveen\Lastfm\LastfmServiceprovider' not found

Yes I added package to providers.
`
'providers' => [

    /*
     * Laravel Framework Service Providers...
     */
    Illuminate\Auth\AuthServiceProvider::class,
    Illuminate\Broadcasting\BroadcastServiceProvider::class,
    Illuminate\Bus\BusServiceProvider::class,
    Illuminate\Cache\CacheServiceProvider::class,
    Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
    Illuminate\Cookie\CookieServiceProvider::class,
    Illuminate\Database\DatabaseServiceProvider::class,
    Illuminate\Encryption\EncryptionServiceProvider::class,
    Illuminate\Filesystem\FilesystemServiceProvider::class,
    Illuminate\Foundation\Providers\FoundationServiceProvider::class,
    Illuminate\Hashing\HashServiceProvider::class,
    Illuminate\Mail\MailServiceProvider::class,
    Illuminate\Notifications\NotificationServiceProvider::class,
    Illuminate\Pagination\PaginationServiceProvider::class,
    Illuminate\Pipeline\PipelineServiceProvider::class,
    Illuminate\Queue\QueueServiceProvider::class,
    Illuminate\Redis\RedisServiceProvider::class,
    Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
    Illuminate\Session\SessionServiceProvider::class,
    Illuminate\Translation\TranslationServiceProvider::class,
    Illuminate\Validation\ValidationServiceProvider::class,
    Illuminate\View\ViewServiceProvider::class,
    Collective\Html\HtmlServiceProvider::class,
    UniSharp\LaravelFilemanager\LaravelFilemanagerServiceProvider::class,
    Intervention\Image\ImageServiceProvider::class,
    Barryvanveen\Lastfm\LastfmServiceprovider::class,

`
I know package wasn't updated in two years .
I use newest laravel version.

It returns an empty array

I am using Laravel 8.
When I check for tracks, albums or artists it returns the response below :

Barryvanveen\Lastfm\Lastfm Object
(
[httpClient:protected] => GuzzleHttp\Client Object
(
[config:GuzzleHttp\Client:private] => Array
(
[handler] => GuzzleHttp\HandlerStack Object
(
[handler:GuzzleHttp\HandlerStack:private] => Closure Object
(
[static] => Array
(
[default] => Closure Object
(
[static] => Array
(
[default] => GuzzleHttp\Handler\CurlMultiHandler Object
(
[factory:GuzzleHttp\Handler\CurlMultiHandler:private] => GuzzleHttp\Handler\CurlFactory Object
(
[handles:GuzzleHttp\Handler\CurlFactory:private] => Array
(
)

[maxHandles:GuzzleHttp\Handler\CurlFactory:private] => 50
)

[selectTimeout:GuzzleHttp\Handler\CurlMultiHandler:private] => 1
[active:GuzzleHttp\Handler\CurlMultiHandler:private] =>
[handles:GuzzleHttp\Handler\CurlMultiHandler:private] => Array
(
)

[delays:GuzzleHttp\Handler\CurlMultiHandler:private] => Array
(
)

[options:GuzzleHttp\Handler\CurlMultiHandler:private] => Array
(
)

)

[sync] => GuzzleHttp\Handler\CurlHandler Object
(
[factory:GuzzleHttp\Handler\CurlHandler:private] => GuzzleHttp\Handler\CurlFactory Object
(
[handles:GuzzleHttp\Handler\CurlFactory:private] => Array
(
[0] => Resource id #12
)

[maxHandles:GuzzleHttp\Handler\CurlFactory:private] => 3
)

)

)

[parameter] => Array
(
[$request] =>
[$options] =>
)

	)

	[streaming] => GuzzleHttp\Handler\StreamHandler Object
	(
	[lastHeaders:GuzzleHttp\Handler\StreamHandler:private] => Array
	(
	)

	)

	)

	[parameter] => Array
	(
	[$request] => <required>
		[$options] => <required>
			)

			)

			[stack:GuzzleHttp\HandlerStack:private] => Array
			(
			[0] => Array
			(
			[0] => Closure Object
			(
			[parameter] => Array
			(
			[$handler] => <required>
				)

				)

				[1] => http_errors
				)

				[1] => Array
				(
				[0] => Closure Object
				(
				[parameter] => Array
				(
				[$handler] => <required>
					)

					)

					[1] => allow_redirects
					)

					[2] => Array
					(
					[0] => Closure Object
					(
					[parameter] => Array
					(
					[$handler] => <required>
						)

						)

						[1] => cookies
						)

						[3] => Array
						(
						[0] => Closure Object
						(
						[parameter] => Array
						(
						[$handler] => <required>
							)

							)

							[1] => prepare_body
							)

							)

							[cached:GuzzleHttp\HandlerStack:private] => Closure Object
							(
							[static] => Array
							(
							[handler] => GuzzleHttp\RedirectMiddleware Object
							(
							[nextHandler:GuzzleHttp\RedirectMiddleware:private] => Closure Object
							(
							[static] => Array
							(
							[handler] => GuzzleHttp\PrepareBodyMiddleware Object
							(
							[nextHandler:GuzzleHttp\PrepareBodyMiddleware:private] => Closure Object
							(
							[static] => Array
							(
							[default] => Closure Object
							(
							[static] => Array
							(
							[default] => GuzzleHttp\Handler\CurlMultiHandler Object
							(
							[factory:GuzzleHttp\Handler\CurlMultiHandler:private] => GuzzleHttp\Handler\CurlFactory
							Object
							(
							[handles:GuzzleHttp\Handler\CurlFactory:private] => Array
							(
							)

							[maxHandles:GuzzleHttp\Handler\CurlFactory:private] => 50
							)

							[selectTimeout:GuzzleHttp\Handler\CurlMultiHandler:private] => 1
							[active:GuzzleHttp\Handler\CurlMultiHandler:private] =>
							[handles:GuzzleHttp\Handler\CurlMultiHandler:private] => Array
							(
							)

							[delays:GuzzleHttp\Handler\CurlMultiHandler:private] => Array
							(
							)

							[options:GuzzleHttp\Handler\CurlMultiHandler:private] => Array
							(
							)

							)

							[sync] => GuzzleHttp\Handler\CurlHandler Object
							(
							[factory:GuzzleHttp\Handler\CurlHandler:private] => GuzzleHttp\Handler\CurlFactory
							Object
							(
							[handles:GuzzleHttp\Handler\CurlFactory:private] => Array
							(
							[0] => Resource id #12
							)

							[maxHandles:GuzzleHttp\Handler\CurlFactory:private] => 3
							)

							)

							)

							[parameter] => Array
							(
							[$request] => <required>
								[$options] => <required>
									)

									)

									[streaming] => GuzzleHttp\Handler\StreamHandler Object
									(
									[lastHeaders:GuzzleHttp\Handler\StreamHandler:private] => Array
									(
									)

									)

									)

									[parameter] => Array
									(
									[$request] => <required>
										[$options] => <required>
											)

											)

											)

											)

											[parameter] => Array
											(
											[$request] => <required>
												[$options] => <required>
													)

													)

													)

													)

													[parameter] => Array
													(
													[$request] => <required>
														[$options] => <required>
															)

															)

															)

															[allow_redirects] => Array
															(
															[max] => 5
															[protocols] => Array
															(
															[0] => http
															[1] => https
															)

															[strict] =>
															[referer] =>
															[track_redirects] =>
															)

															[http_errors] => 1
															[decode_content] => 1
															[verify] => 1
															[cookies] =>
															[idn_conversion] => 1
															[headers] => Array
															(
															[User-Agent] => GuzzleHttp/6.5.5 curl/7.78.0 PHP/7.4.21
															)

															)

															)

															[query:protected] => Array
															(
															[format] => json
															[api_key] =>**********************
															[method] => user.getWeeklyArtistChart
															[user] => Oneapptech
															[from] => 1656633600
															[to] => 1657238400
															)

															[pluck:protected] => weeklyartistchart.artist
															[data:protected] => Array
															(
															)

															)

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.