All Projects โ†’ nunomaduro โ†’ laravel-any

nunomaduro / laravel-any

Licence: MIT License
๐Ÿ“ Laravel collection macro that determine if `any` item from the collection passes the given truth test.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-any

Pytorch Generative Model Collections
Collection of generative models in Pytorch version.
Stars: โœญ 2,296 (+5942.11%)
Mutual labels:  package, collection
Laravelmetatags
The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project
Stars: โœญ 226 (+494.74%)
Mutual labels:  package, helper
langx-java
Java tools, helper, common utilities. A replacement of guava, apache-commons, hutool
Stars: โœญ 50 (+31.58%)
Mutual labels:  helper, collection
angular-package-builder
[DEPRECATED] Packages your Angular 4+ library based on the Angular Package Format.
Stars: โœญ 25 (-34.21%)
Mutual labels:  package
LiteOTP
Multi OTP Spam Amp/Paralell threads
Stars: โœญ 50 (+31.58%)
Mutual labels:  package
pidesktop
Collected files, drivers and documentation for the pidesktop case
Stars: โœญ 26 (-31.58%)
Mutual labels:  package
Ragnarok
Virus Package ( For Educational Purposes )
Stars: โœญ 23 (-39.47%)
Mutual labels:  package
channelHelper
ๅŸบไบŽwalleๅทฅๅ…ท็š„ๅคšๆธ ้“ๆ‰“ๅŒ…่„šๆœฌ
Stars: โœญ 35 (-7.89%)
Mutual labels:  package
php-traits
A collection of (more or less) useful traits for PHP7.2+
Stars: โœญ 17 (-55.26%)
Mutual labels:  helper
Arch-Data-Science
Archlinux PKGBUILDs for Data Science, Machine Learning, Deep Learning, NLP and Computer Vision
Stars: โœญ 92 (+142.11%)
Mutual labels:  package
HBHybridCollectionView
Instead for SwipeTableView when using collection view.
Stars: โœญ 14 (-63.16%)
Mutual labels:  collection
cookiecutter-pypackage
A cookiecutter template for Python package with heavy use of Github actions
Stars: โœญ 19 (-50%)
Mutual labels:  package
CoolSlidingMenu
A powerful menu that you can customize itใ€‚
Stars: โœญ 25 (-34.21%)
Mutual labels:  collection
version-check
An action that allows you to check whether your npm package version has been updated
Stars: โœญ 65 (+71.05%)
Mutual labels:  package
ObjectUI
Create SwiftUI Views with any data
Stars: โœญ 19 (-50%)
Mutual labels:  any
badgecreatr
Quickly place relevant badges at the top of your readme, stop copy pasting, start on your project
Stars: โœญ 61 (+60.53%)
Mutual labels:  package
sound field analysis-py
Analyze, visualize and process sound field data recorded by spherical microphone arrays.
Stars: โœญ 61 (+60.53%)
Mutual labels:  package
react-double-marquee
A React marquee component that smoothly loops content.
Stars: โœญ 24 (-36.84%)
Mutual labels:  package
ReplAPI.it-NodeJS
[DEPRECIATED] ๐™€๐™ซ๐™š๐™ง๐™ฎ๐™ฉ๐™๐™ž๐™ฃ๐™œ ๐™๐™š๐™ฅ๐™ก๐™ž๐™ฉ, ๐™–๐™ก๐™ก ๐™–๐™ฉ ๐™ฎ๐™ค๐™ช๐™ง ๐™™๐™ž๐™จ๐™ฅ๐™ค๐™จ๐™–๐™ก. This is the single most extensive Replit package, allowing you to access various parts of the site with just a few classes and methods. Maintained by @RayhanADev.
Stars: โœญ 32 (-15.79%)
Mutual labels:  package
action-autotag
Automatically generate a new tag when the manifest file (package.json, Dockerfile, custom file, etc) version changes.
Stars: โœญ 45 (+18.42%)
Mutual labels:  package

Any example

Build Status Total Downloads Latest Version License

About laravel-any

laravel-any was created by, and is maintained by Nuno Maduro, and is an Laravel collection macro that determine if any item from the collection passes the given truth test.

Installation & Usage

Requires PHP 7.2+

Create your package using Composer:

composer require nunomaduro/laravel-any

How to use:

$users = User::all();

// Returns `true` if the collection is not empty.
$users->any();

// Returns `true` if there is a user with a paid plan.
$users->any(fn ($user) => $user->has_paid_plan);

// Returns `true` if there is a user with a paid plan.
$users->any->has_paid_plan;

Contributing

Thank you for considering to contribute to laravel-any. All the contribution guidelines are mentioned here.

You can have a look at the CHANGELOG for constant updates & detailed information about the changes. You can also follow the twitter account for latest announcements or just come say hi!: @enunomaduro

Support the development

Do you like this project? Support it by donating

License

laravel-any is an open-sourced software licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].