Thaw the phyllo as directed on its package. Heat the oven to 375°F and line a baking sheet with foil.
Chop the onion. Process it with the garlic, cheeses, lemon juice, salt, pepper, and herbs until smooth.
Transfer to a bowl. Squeeze the thawed spinach dry, then stir it into the cheese mixture.
Stack two phyllo sheets on the baking sheet and lightly brush with butter. Continue adding buttered pairs until the stack contains 10–12 sheets.
Distribute one-quarter of the filling over the pastry, leaving a 1-inch margin along one long side.
Roll toward the uncovered edge. Butter the margin and close the seam.
Repeat to form four logs.
Slice each log into 12 approximately 1-inch pieces.
Arrange on the prepared baking sheet. Bake for 15–20 minutes, until golden and crisp.
Cool briefly before handling; serve warm.