Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Float Sdk Laravel Package

spatie/laravel-float-sdk

Laravel-friendly SDK for interacting with the Float.com API (v3). Configure your API token and user agent via .env/config and use the provided FloatClient to access Float endpoints. Not a full API implementation; contributions welcome.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy Decision: Eliminates the need to develop a custom Float API integration from scratch, saving 3–6 months of development time for teams integrating expense management systems. The SDK’s Laravel-native design (service container binding, query builders) aligns with modern PHP architectures, reducing integration friction.
  • Feature Roadmap Enablement:
    • Expense Automation: Enables features like auto-submission of expenses to Float from user-facing forms (e.g., mobile apps, web portals) with minimal backend logic.
    • Real-Time Sync: Supports webhook-driven updates (e.g., syncing Float approval statuses to a CRM like HubSpot or Salesforce) via Laravel’s event system.
    • Compliance & Reporting: Facilitates audit-ready expense tracking by exposing Float’s allocations, time-off, and public holidays endpoints for custom reporting (e.g., PDF/Excel exports via Laravel Excel).
    • Multi-Tenant SaaS: Simplifies tenant-isolated expense management by leveraging Float’s API tokens per tenant, with Laravel’s scoped service providers or tenant middleware.
  • Cost Optimization: Reduces API call overhead by implementing caching layers (e.g., Laravel Cache) for frequently accessed data (e.g., client lists, project tasks) with the SDK’s all() methods.
  • Risk Mitigation: The MIT license and active maintenance (last release: 2026-05-11) ensure long-term viability. The 1.0.1 fix for single-object responses (PR #28) addresses a critical edge case for production reliability.
  • Use Cases:
    • Freelance/ Agency Platforms: Automate invoice generation from Float’s project allocations and time tracking.
    • HR Tech: Sync employee time-off requests with Float’s API for unified payroll/expense systems.
    • FinTech: Build expense forecasting tools by aggregating Float’s project budgets and historical allocations.
    • E-Commerce: Track vendor expenses (e.g., shipping costs) via Float and auto-categorize them in accounting software.

When to Consider This Package

  • Adopt if:
    • Your Laravel app directly interacts with Float’s API (v3) for expense management, time tracking, or project accounting.
    • You need rapid integration with 80%+ API coverage (e.g., users, projects, allocations, time-off) without maintaining a custom client.
    • Your team prioritizes developer experience over full API control (e.g., prefer type-safe query builders like GetUsersParams over raw HTTP calls).
    • You require Laravel-specific features like:
      • Service container injection (e.g., FloatClient dependency in controllers/services).
      • Query parameter validation (e.g., fields, expand, sort via DTOs).
      • Seamless testing (mockable HTTP client via Saloon).
    • You’re building for SMBs/enterprises needing Float’s multi-currency, compliance, or approval workflows.
    • You’ve validated the 1.0.1 fix for single-object responses (e.g., allocations) is critical for your use case (e.g., fetching a single project’s budget).
  • Look elsewhere if:
    • You need 100% API coverage (e.g., unsupported endpoints like custom fields or webhooks; contribute via PRs or use Float’s official SDK).
    • Your stack isn’t Laravel/PHP (e.g., Node.js, Python; use Float’s native SDKs).
    • You require offline-first or heavy customization of Float’s data model (e.g., transforming responses before storage; consider abstracting the SDK or using a middleware layer).
    • Your use case involves bulk data migration (e.g., importing 100K+ records; may need direct API calls with pagination optimizations).
    • You cannot tolerate dependency updates (e.g., Composer tooling changes in PRs #20–#26 are non-breaking but may affect CI/CD pipelines).
    • You need advanced error handling beyond the SDK’s defaults (e.g., custom retries, circuit breakers; wrap the SDK in a facade or service layer).
    • Your team lacks PHP/Laravel expertise to leverage the SDK’s query parameter DTOs or service container features.

How to Pitch It (Stakeholders)

For Executives: "This Laravel SDK for Float’s API (v3) lets us integrate expense management into our product in weeks, not months—without hiring a dedicated API integration team. It’s like plugging Float’s accounting system directly into our Laravel backend, so we can automate expense submissions, approvals, and reporting with minimal code. For example, we could auto-sync client project budgets from Float to our dashboard, or trigger Slack alerts when expenses exceed thresholds. The SDK is actively maintained, fixes critical bugs (like single-object response parsing), and aligns with our PHP stack. It’s a build vs. buy win: we avoid the risk and cost of building a custom solution while gaining enterprise-grade features like multi-currency support and compliance-ready workflows."

For Engineering/Technical Leads: *"The spatie/laravel-float-sdk gives us a batteries-included way to interact with Float’s API in Laravel, with key advantages:

  • Developer Productivity: Service container-bound FloatClient with type-safe query builders (e.g., GetUsersParams) reduces boilerplate and errors.
  • Reliability: The 1.0.1 release fixes a critical edge case for single-object responses (e.g., allocations), which we’d need to handle manually otherwise.
  • Extensibility: We can wrap the SDK in a facade or service layer to add custom logic (e.g., caching, retries) without forking.
  • Laravel Synergy: Works natively with Eloquent, caching, queues, and events (e.g., trigger a job when a Float expense is approved).
  • Low Risk: MIT-licensed, actively maintained, and used by Spatie’s other high-quality packages.

Trade-offs:

  • Not a full API wrapper (e.g., no webhooks or custom fields), but covers 80% of our needs for expense management.
  • Requires basic Laravel setup (environment variables, service provider binding), but the README’s 5-minute guide makes it straightforward.

Recommendation: Use this for core Float integrations (e.g., expense submissions, project sync) and supplement with direct API calls or PRs for unsupported endpoints. Pair it with Laravel’s caching to optimize performance for read-heavy operations like fetching client lists."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi